Oooooh yes.... So in 5.x there was no DocValues option for this SpatialStrategy impl which is a shame of course. You could take the code for 6.x: https://github.com/apache/lucene-solr/blob/branch_6x/lucene/spatial-extras/src/java/org/apache/lucene/spatial/vector/PointVectorStrategy.java and back port it to Lucene 5x. It shouldn't be too hard. Since you only need this for distance sorting, you could only port what's needed; have makeQuery(...) throw an exception. createIndexableFields need only output a 2-element array, one for each DoubleDocValuesField.
~ David On Mon, Jul 17, 2017 at 12:46 AM sc <scattaman...@4info.com> wrote: > Hi David, > > Sorry I didn't inform my current environment setup. I am on Apache > Lucene > 5.5.4 version(As our application is still running on JDK 1.7). > > In that version, I only see one constructor for PointVectorStrategy class > > public PointVectorStrategy(com.spatial4j.core.context.SpatialContext ctx, > java.lang.String fieldNamePrefix); > > I don't use Solr packages either. > > What's the correct way to use PointVectorStrategy under Lucene 5.5.4 > version? > > Thanks for taking time and responding. > > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Lucene-GeoNear-Search-and-Sort-Performance-tp4343468p4346286.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker LinkedIn: http://linkedin.com/in/davidwsmiley | Book: http://www.solrenterprisesearchserver.com