Re: Migration Lucene 4 -> Lucene 6

2016-10-21 Thread Alan Woodward
Hi, You need to add a NumericDocValuesField here as well - Point is for searching, Stored is for display. Alan Woodward www.flax.co.uk > On 21 Oct 2016, at 10:54, Ludovic Bertin wrote: > > Hi, > > When I'm trying to launch search with ordering, but it fails with exception : > unexpected do

Migration Lucene 4 -> Lucene 6

2016-10-21 Thread Ludovic Bertin
Hi, When I'm trying to launch search with ordering, but it fails with exception : unexpected docvalues type NONE for field 'LOCAL_TIME' (expected=NUMERIC). Re-index with correct docvalues type. For indexing: doc.add(new LongPoint("longValue", (Long) value)); doc.add(new StoredField("longValue