Hi

I have tried to upgrade lucene from 4.x to 5.0 recently.I found out from
documentation that FieldCache is removed from lucene 5, and I should use
DocValues fields for sorting.
I upgraded my sources, and everything works fine except spatial sorting by
distance.
When I looked into PointVectorStrategy I saw that createIndexableFields()
creates DoubleFields, but class that used during sorting
(DistanceValueSource) works with NumericDocValues. At runtime I got the
exception, and advice to use UninveringReader.

I'm a little confused with that.
So, in my opinion, there is spatial sorting, which is broken by default. Am
I right or missing something?

Option to use UninveringReader doesnt works for me because according to
https://issues.apache.org/jira/browse/LUCENE-6370 there is no easy way to
use UninveringReader with NRT index, which I use.

Reply via email to