Hoss, for some reason this doesn't work when I pass the latlong value via query..
This is the query.. It just returns all the values for fname='peter' (doesn't filter for Tarmac, Florida). fl=*,score&rows=10&qt=findperson&fps_latlong=26.22084,-80.29&fps_fname=peter *solrconfig.xml* <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}"</str> </lst> *Works when used via custom component:* This works fine when the latlong value is passed via custom component. We have a custom component which gets the location name via query, calculates the corresponding lat long co-ordinates stored in TSV file and passes the co-ordinates to the query. *Custom component config:* <searchComponent name="geo" class="com.customcomponent> <str name="placenameFile">centroids.tsv</str> <str name="placenameQueryParam">fps_where</str> <str name="latQueryParam">fps_latitude</str> <str name="lonQueryParam">fps_longitude</str> <str name="latlonQueryParam">fps_latlong</str> <str name="distQueryParam">fps_dist</str> <float name="defaultDist">48.2803</float> <float name="boost">1.0</float> </searchComponent> *Custom component query:* fl=*,score&rows=10&*fps_where="new york, ny"*&qt=findperson&fps_latlong=26.22084,-80.29&fps_dist=.10&fps_fname=peter Is it a bug? -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-4-3-0-How-to-make-fq-optional-tp4066592p4066862.html Sent from the Solr - User mailing list archive at Nabble.com.