Answers for "unexpected docvalues type none for field (expected=sorted)"

0

unexpected docvalues type none for field (expected=sorted)

In Lucene 5, the sorting field use a very different kind of field. A simple not analyzed stored field is not enough. Instead you need to add the field with the type SortedDocValuesField.

Change the add method call solves the problem but it won't store the value of the date field.
Posted by: Guest on May-02-2022

Code answers related to "unexpected docvalues type none for field (expected=sorted)"

Browse Popular Code Answers by Language