As I mentioned that PointVectorStrategy has an argument that accepts a
Lucene FieldType that you can add docValues to.

On Sun, Jul 16, 2017 at 2:07 PM sc <scattaman...@4info.com> wrote:

> 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
>
> --
Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker
LinkedIn: http://linkedin.com/in/davidwsmiley | Book:
http://www.solrenterprisesearchserver.com

Reply via email to