Thanks for the suggestion. I changed the strategy to
this.strategy = new PointVectorStrategy(ctx, "pointVector"); And the rest of the code remained same. I recreated the Index and while searching I am getting following Exception: Exception in thread "main" java.lang.IllegalStateException: unexpected docvalues type NONE for field 'pointVector__x' (expected=NUMERIC). Use UninvertingReader or index with docvalues. at org.apache.lucene.index.DocValues.checkField(DocValues.java:208) -- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-GeoNear-Search-and-Sort-Performance-tp4343468p4346269.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