solrQuery.setQuery("*:*");
solrQuery.addFilterQuery("{!func}geodist()");
solrQuery.set("sfield", "store");
solrQuery.set("pt", lat + "," + lon);
solrQuery.set("sort", "geodist() asc");
//disclaimer: I haven't run this
-
Author: https://www.packtpub.com/solr-1-4-enterprise
I'm sorry, i'm trying to do the same as he is.
I've read your reply many times now, but i still don't know how to do this.
Would somebody help me with this? Thanks a lot
--
View this message in context:
http://lucene.472066.n3.nabble.com/Spatial-search-with-SolrJ-3-1-How-to-tp2961136p3259456.htm
Saïd,
The misunderstanding you have is that you are confusing the user query (the
q parameter) with the URL that Solr sees. Well actually the part of the URL
that is called the query string -- that which is after the "?". SolrQuery
has various setters for well-known parameters, and others just us
Hi there,
Through SolrJ 3.2, I'm trying to set some Spatial Search queries (e.g., filter
by distance, sort by distance, etc.). I don’t know whether there's a specific
SolrJ syntax to do this. I tried using Strings, but it’s not working. Here’s
are two examples that work fine on Solr, but don’t