solr - Adding filter queries (FS) to a soler query using solrj -
i trying query solr using solrj , can't seem find way , fq argument code
here http request trying run
select?wt=json&indent=true&fl=name,store&q=*:*&fq=!geofilt%20pt=45.15,-93.85%20sfield=store%20d=5}
and here code
solrserver server = new httpsolrserver("the host"); solrquery query = new solrquery(); query.setquery( "*" ); query.setparam("fl","name,price");
how add setparam fq "!geofilt pt=45.15,-93.85 sfield=store d=5" assume line query.setparam("fq","the fq field") nothing seems work me.
thanks,
shimon
can use addfilterquery
?
solrquery query = new solrquery(); query.setquery( "*" ); query.setparam("fl","name,price"); query.addfilterquery("{!geofilt pt=45.15,-93.85 sfield=store d=5}");
Comments
Post a Comment