question about spatial module in lucene 5

2015-03-30 Thread Anton Lyska
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 PointVectorStra

Re: question about spatial module in lucene 5

2015-03-30 Thread david.w.smi...@gmail.com
I Anton. I think you’re right. PointVectorStrategy has been overlooked. The work-around is pretty simple though. In addition to calling createIndexableFields, also create two DoubleDocValuesField instances, one for each dimension that uses the identical names the strategy generates. Lucene will