Questions tagged [rsolr]

RSolr gem, which is a simple, extensible Ruby client for Apache Solr.

A simple, extensible Ruby client for Apache Solr. This gem provides better options than the "deprecated" ruby-solr gem.

Notice: This document is only for the the 1.0 in the master. The last pre 1.0 gem release documentation can be found here: github.com/mwmitchell/rsolr/tree/v0.12.1

The code docs for the last release can be viewed here : rdoc.info/projects/mwmitchell/rsolr

25 questions
0
votes
1 answer

Rails 4 w/ Heroku RSolr::Error::Http (RSolr::Error::Http - 404 Not Found

my setup: Rails 4, Heroku with Websolr addon. The Solr search was been working just fine for months with my Rails 4 (production) application. Then one day it quit and I went through the following stackoverflow answers and none of them worked. Answer…
0
votes
1 answer

Rails rsolr 1.0.12 Errno::ECONNREFUSED depreciated, but why not working in production?

I'm working with Rails 4.0.4 en Sunspot as a search engine. Works just fine in production. Using rsolr 1.0.12 [DEPRECATION] `RSolr.escape` is deprecated (and incorrect). Use `Rsolr.solr_escape` instead. Errno::ECONNREFUSED (Connection refused -…
YannisDC
  • 207
  • 1
  • 2
  • 9
0
votes
1 answer

How to soft-commit in Sunspot (Solr 4)?

Sunspot.commit will do hard-commit. How can I issue a soft-commit command against the Solr 4 server? Soft commits are less expensive and they make use of the NRT feature of Solr 4.
hammady
  • 969
  • 1
  • 13
  • 22
0
votes
1 answer

Using POST instead of GET for long queries in Sunspot / Solr

I need to run a long query over Solr but Sunspot is using GET as the default method. I know that this is something supported on RSolr, but i don't know if i can do it through Susnpot. Thanks!
0
votes
1 answer

sunspot:reindex error - getaddrinfo: nodename nor servname provided, or not known

I'm working with a Rails 3.2 application that has a mysql database and a number of models that are being indexed in Solr. Here's what's happening: I am running the following command: RAILS_ENV=development bundle exec rake sunspot:reindex[1000]…
Tom Chapin
  • 3,276
  • 1
  • 29
  • 18
0
votes
2 answers

Fetch top terms with sunspot

solr have a admin console like http://localhost:8982/solr/admin/schema.jsp which provides some schema fields data like top terms and freq for specific field. I am using sunspot, and how to query data like this? like TOP 10 terms
Ryan Wong
  • 120
  • 1
  • 7
0
votes
3 answers

"Sunspot" Gem makes distinction between UTF-8 chars

In a Rails app I started using sunspot => https://github.com/sunspot/sunspot/blob/master/README.md Everything went OK until I noticed this (taken from the rails-console): 1.9.3p194 :002 > MyModel.search{fulltext "leon"}.results => [#
Manu Artero
  • 9,238
  • 6
  • 58
  • 73
0
votes
1 answer

Sunspot and Rsolr query

I'm reading sunspot documentation and find that sunspot based on RSolr library. Is there any way to get connection to perform low level request like this pseudo-code: solr = Sunspot.connection response = solr.get 'select', :params => {:q => '*:*'}
Volodymyr
  • 1,136
  • 3
  • 11
  • 28
0
votes
2 answers

Undefined field error in sunspot_solr grouping clause

I have product_details table which belongs to categories. product_details has fields like id, name, price, discount and category_id and categories table has fields like id and name. Am using mysql database Am trying to do group product details based…
web spider26
  • 252
  • 4
  • 16
-1
votes
1 answer

Rsolr::Ext return undefined method `to_i' for ["10", "10"]:Array

I had a problem about RSolr::Ext. When i try to query with params page and per_page use library rsolr-ext in order to connect to Apache Solr. And i get an error same as: NoMethodError: undefined method `to_i' for ["10", "10"]:Array from…
Khanh Pham
  • 2,848
  • 2
  • 28
  • 36
1
2