Reputation: 18521
I am running solr 4.3.0.
I have three simple demands of my search feature
I believe this is a very common search definition, so my question is what is recommended way to translate user generated free text field to the solr search http request ?
Upvotes: 0
Views: 68
Reputation: 52779
You need to check the edismax query parser which will handle all of the above.
qf (Query Fields), qs (Query Phrase Slop), pf (Phrase Fields), ps (Phrase Slop), pf2 (Phrase bigram fields), ps2 (Phrase bigram slop), pf3 (Phrase trigram fields), ps3 (Phrase trigram slop)
parameter you can control which fields would be searched upon. Usually the words are search individually on all the fields and the scored as per the proximity-
is treated a negative operator and would result into the results being returned without the term.Upvotes: 1