-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different behaviour of embedded Solr vs Solr container? #863
Comments
Quick edit; those parameters |
I've added more detail on this Stack Overflow post: https://stackoverflow.com/questions/44617017/difficulty-getting-more-than-exact-field-match-results-on-sunspot-solr-with-qf |
It seems that the default sunspot gem query only returns an exact, case-sensitive match of the title field. For example:
So, either we need to a) figure out why the seemingly well-formed sunspot-generated query only matches exact title text and change that, OR |
When using The sunspot/sunspot/lib/sunspot/query/join.rb Line 27 in 49904ac
And I am attempting (in Solr console) the same difference without
returns nothing, while
returns full results. |
Just a follow-up; we've ended up switching away from the embedded Solr provided in the |
Actually, @jywarren we did figure this out! It turns out that the Solr engine needs the "Sunspot configsets" which, in the case of the container, need to be loaded as a volume. |
Hi,
We are PublicLab.Org appreciate Sunspot and are in the process of deploying it to production.
Our testing and development was done with the embedded Solr engine found in
sunspot_solr (2.2.6)
gem.Now for production we are using a Solr 5.3 container (as found in https://hub.docker.com/_/solr/). In this case, the default Sunspot query is not recognized by the Solr service , specifically, the parameters
qf=title_text+body_text+comment_text
anddefType=edismax
cause Solr to not return any results.Adjusting these parameters for production, causes results to break in development (the embedded Solr).
Thanks for your guidance!
The text was updated successfully, but these errors were encountered: