Mailing List Archive

Expected Numeric
I have three fields with the same name:

1. new StoredField("createdTimestamp", longValue) (Store)
2. new LongPoint("createdTimestamp", longValue) (Filtering)
3. new NumericDocValues("createdTimestamp", longValue) (Sorting)

I'm getting the following error during execution of my application
(strangely, everything initially indexes and loads okay):

> java.lang.IllegalStateException: unexpected docvalues type NONE for field
> 'createdTimestamp' (expected=NUMERIC). Re-index with correct docvalues type.


This is the process I've followed for years and it has worked. I don't
know if it's the migration to the latest version of Lucene or something
else I'm done, but I'm really not sure why it's complaining. Any tips are
appreciated.
Re: Expected Numeric [ In reply to ]
To clarify, this appears to be directly related to me sorting on the
timestamp field. If I turn sorting off, everything loads and works just
fine.

On Thu, Aug 29, 2019 at 8:42 AM Hicks, Matt <matt@outr.com> wrote:

> I have three fields with the same name:
>
> 1. new StoredField("createdTimestamp", longValue) (Store)
> 2. new LongPoint("createdTimestamp", longValue) (Filtering)
> 3. new NumericDocValues("createdTimestamp", longValue) (Sorting)
>
> I'm getting the following error during execution of my application
> (strangely, everything initially indexes and loads okay):
>
>> java.lang.IllegalStateException: unexpected docvalues type NONE for field
>> 'createdTimestamp' (expected=NUMERIC). Re-index with correct docvalues type.
>
>
> This is the process I've followed for years and it has worked. I don't
> know if it's the migration to the latest version of Lucene or something
> else I'm done, but I'm really not sure why it's complaining. Any tips are
> appreciated.
>