Re: SolrJ & Spatial Search

2011-08-16 Thread David Smiley (@MITRE.org)
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

Re: SolrJ & Spatial Search

2011-08-16 Thread federico.wachs
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

Re: SolrJ & Spatial Search

2011-07-10 Thread David Smiley (@MITRE.org)
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

SolrJ & Spatial Search

2011-07-08 Thread SR
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