You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by niraj kumar <ni...@jungleegames.com> on 2019/12/23 11:53:30 UTC

Need help in GeoSpatial Searching into Solr Server

I have 100 documents into Solr, type of location field is
*org.apache.solr.schema.TextField.*

I am unable to run any query to search nearby points with reference to that
field.

So if you can help into it or provide some program reference in JAVA with
same kind of implementation.


Thanks,
Niraj

Re: Need help in GeoSpatial Searching into Solr Server

Posted by Erick Erickson <er...@gmail.com>.
Why are you using  text field for location? You must use the proper field type.

You need to follow the instructions in the “spatial search” section of
the reference guide, here’s the ref guide for Solr 7:

https://lucene.apache.org/solr/guide/7_7/spatial-search.html

Best,
Erick


> On Dec 23, 2019, at 6:53 AM, niraj kumar <ni...@jungleegames.com> wrote:
> 
> I have 100 documents into Solr, type of location field is
> *org.apache.solr.schema.TextField.*
> 
> I am unable to run any query to search nearby points with reference to that
> field.
> 
> So if you can help into it or provide some program reference in JAVA with
> same kind of implementation.
> 
> 
> Thanks,
> Niraj