You're going to have to use the Lucene-spatial module directly then. There's SpatialExample.java to get you started.
javinsnc wrote > > David Smiley (@MITRE.org) wrote >> On 3/10/14, 12:56 PM, "javinsnc" < >> javiersangrador@ >> > wrote: >> This is indeed the source of the problem. >> >> Why do you index with Lucene’s API and not Solr’s? Solr not only has a >> web-service API but it also has the SolrJ API that can embed Solr — >> EmbeddedSolrServer. I only recommend embedding Solr in limited >> circumstances as it’s more flexible and usually plenty fast to >> communicate >> with Solr normally, or to easily customize Solr to load data from a >> custom >> file and so the indexing is all in-process. You would do the latter with >> either a custom DataImportHandler piece or a “ContentStreamLoader >> subclass. > Because I started indexing by lucene and for now, it's impossible to > change it to Solr (although I know the benefits). Maybe in the future. > > So do you know how I should index the field in Lucene? I need to know the > exact type for this field. I think Lucene index fields as String by > default, right? > > Thanks in advance! ----- Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-spatial-search-within-the-polygon-tp4101147p4122641.html Sent from the Solr - User mailing list archive at Nabble.com.