lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <a...@flax.co.uk>
Subject Re: Migration Lucene 4 -> Lucene 6
Date Fri, 21 Oct 2016 10:08:25 GMT
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 <l.bertin@lombardodier.com> wrote:
> 
> 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", (Long) value));
> 
> 
> For searching:
> 
> Sort sort = new Sort(new SortField("longValue", SortField.Type.LONG, false)
> 
> searcher.search(query, max, sort);
> 
> 
> ð  unexpected docvalues type NONE for field 'LOCAL_TIME' (expected=NUMERIC). Re-index
with correct docvalues type.
> 
> Do I have to reindex all my data, or can I change the way to do the search ?
> If I have to reindex, what is the correct way to index with sort capabilities ?
> 
> Thanks
> 
> Ludovic BERTIN
> 
> 
> [[ rethink everything. ]]<http://www.lombardodier.com>
> 
> DISCLAIMER **********************************************
> This message is intended only for use by the person to
> whom it is addressed. It may contain information that is
> privileged and confidential. Its content does not constitute
> a formal commitment by Bank Lombard Odier & Co Ltd
> or any of its branches or affiliates. If you are not the
> intended recipient of this message, kindly notify the sender
> immediately and destroy this message. Thank You.
> ***************************************************************
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message