Hi Mario, This depends a bit on how your geodata is stored within your repository, however, assuming you have geographic coordinates in a property named "geo", you will need to setup the Solr schema with a dedicated field named "geo" whose fieldType is LatLonType [1]. Then, assuming you have the data indexed, you'll be able to leverage that via native language [2], however it'd be nice to know what your use case is. Should geographical data in your use case be used for filtering results or ranking results or some other purpose?
Regards, Tommaso [1] : http://wiki.apache.org/solr/SpatialSearch#Schema_Configuration [2] : http://jackrabbit.apache.org/oak/docs/query/query.html Il giorno ven 6 nov 2015 alle ore 16:52 Mario Rodriguez < [email protected]> ha scritto: > hi there, > > Just have a question regarding the best way to execute a JCR SQL2 Solr > query for a geospatial query. I have seen that there is an implementation > for spatialj (https://issues.apache.org/jira/browse/OAK-2048). Is there an > example that somebody can contribute, it would be great. > > https://cwiki.apache.org/confluence/display/solr/Spatial+Search > > I have also seen Tommasso's presentation in which the solr can be included > by the 'solr(statement)' in the SQL2 declaration. > > Thanks, > Mario > > -- > *Mario Rodriguez Jaen | Senior Software Engineer* > Netcentric Iberica SLU > Camí Antic de València, 54, 7-9ª > ES-08005 Barcelona > M: +34 661 264 715 > [email protected] | www.netcentric.biz >
