I am using Sunspot rails(1.1.0). Everything works when I run my Rails
application and the Solr server on the same machine. When I run Solr
server on a different machine, I get the following error:
Errno::ECONNREFUSED: Connection refused - Connection refused
from /opt/tibco/jruby-1.4.0RC1/lib/ruby/1.8/net/http.rb:560:in `initialize'
from...
Hi.
I was reindexing my model when I suddenly shutdown my mac,
When I try to reindex again using (Model_name).reindex in script/console I encountered an error that I haen't encountered before.
RSolr::RequestError: Solr Response: Severe_errors_in_solr_configuration__Check_your_log_files_for_more_detailed_information_on_what_may_be_wrong...
I'm new to Solr search and trying to get a grasp on how to handle ordering of results. I'm using Ruby on Rails together with the Sunspot gem to interface with Solr.
I have an Article model, that has the following fields that are indexed:
text Title
text AuthorNames
integer NumberOfReviews
I'd like to be able to perform a search on So...
I'm using Sunspot Solr search, which works fine for the most part for basic search. It's supposed to be able to handle quotation marks around phrases, so that a search for test case will return documents with both test and case, whereas a search for "test case" should return documents with the phrase test case.
However, I've been pullin...
In Solr/Lucene is it possible to order first by relevance, and then by a second attribute?
As far as I can tell if I set an ordering parameter, it totally overrides relevance, and sorts by the ordering parameter(s).
How can I have results sorted first by relevance, and then in the case of two entries with exactly the same relevance, gi...
How can I debug Solr search queries when using the Sunspot gem on Rails? I have some queries that are returning bizarrely high scores, and I'm trying to get to the bottom of why this is happening.
It doesn't seem like any debugging information is exposed to Sunspot, so I think that I need to debug through Solr directly. Fortunately, So...
I have an input field that was written with onfocus="this.value='' , but recently decided to change it to onfocus="this.select() . The trouble is that when I went to change it, it still clears! I searched my entire javascript library, html, everything looking for what could be causing that. Nothing is being called of the likes.
I tried ...
I noticed (and verified in the sunspot code) the following behavior
class Foo < ActiveRecord::Base
def bar
search_str = "foo"
Boo.search do
keywords(search_str)
p self.id
p self
end
end
end
In the code above, the DSL block can access the variables defined in
the context. But the self inside block, poin...
I use the Sunspot gem in my RoR app to do searches on the Post model, and it works great for that. However, I need to use it's matching algorithm against a single post object.
For example, I can search all Posts like this:
Sunspot.search Post do
...
end
But, I need to do the search against a single post object, like so:
Sunspot.se...