fq vs q parameter
Hi, I am currently using the below configuration in one of my handler and I was thinking of removing the values from q parameter and including as a part of fq parameter. Can someone let me know if there is any performance improvement when using fq parameter compared to q? str name=q ( _query_:{!dismax qf=person_name_lname_i v=$fps_lname}^8.3 OR ) /str /lst lst name=appends str name=fq{!switch case='*:*' default=$fq_bbox v=$fps_latlong}/str /lst lst name=invariants str name=fq_bbox_query_:{!bbox pt=$fps_latlong sfield=geo d=$fps_dist}^0.2/str /lst -- View this message in context: http://lucene.472066.n3.nabble.com/fq-vs-q-parameter-tp4071748.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: fq vs q parameter
Yes, definitely, fq parameters don't affect scoring and can be cached. Michael Della Bitta Applications Developer o: +1 646 532 3062 | c: +1 917 477 7906 appinions inc. “The Science of Influence Marketing” 18 East 41st Street New York, NY 10017 t: @appinions https://twitter.com/Appinions | g+: plus.google.com/appinions w: appinions.com http://www.appinions.com/ On Wed, Jun 19, 2013 at 4:27 PM, Learner bbar...@gmail.com wrote: Hi, I am currently using the below configuration in one of my handler and I was thinking of removing the values from q parameter and including as a part of fq parameter. Can someone let me know if there is any performance improvement when using fq parameter compared to q? str name=q ( _query_:{!dismax qf=person_name_lname_i v=$fps_lname}^8.3 OR ) /str /lst lst name=appends str name=fq{!switch case='*:*' default=$fq_bbox v=$fps_latlong}/str /lst lst name=invariants str name=fq_bbox_query_:{!bbox pt=$fps_latlong sfield=geo d=$fps_dist}^0.2/str /lst -- View this message in context: http://lucene.472066.n3.nabble.com/fq-vs-q-parameter-tp4071748.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: fq vs q parameter
I see that your query has boost value so this mean you need Solr to Score on each match document. One of the key difference between q and fq is thats fq will not have any impact on score. where as having it in q will score each document based on the Similarity Score. -- View this message in context: http://lucene.472066.n3.nabble.com/fq-vs-q-parameter-tp4071748p4071758.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: fq vs q parameter
+1 q and fq both can be cached. -- View this message in context: http://lucene.472066.n3.nabble.com/fq-vs-q-parameter-tp4071748p4071759.html Sent from the Solr - User mailing list archive at Nabble.com.