lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KARTHIK SHIVAKUMAR <nskarthi...@gmail.com>
Subject Re: Indexing a Date/DateTime/Time field in Lucene 4
Date Sun, 09 Apr 2017 05:12:35 GMT
I did use the Date into millisec and stored the long into index, this
helped me to convert the searched index into any date format later on the
o/p.

On Wed, Apr 5, 2017 at 6:08 PM, Frederik Van Hoyweghen <
frederik.vanhoyweghen@chapoo.com> wrote:

> Hey everyone,
>
> I'm seeing some conflicting suggestions concerning the type of field to use
> for indexing a Date/DateTime/Time value.
>
> Some suggest conversion using DateTools.timeToString() and using a
> StringField,
> while others suggest using the long value of getTime() and using a
> LongField (this is supposed to perform better using NumericRangeQuery).
>
> What are your opinions on this?
>
> Kind regards,
> Frederik
>



-- 





*N.S.KARTHIKR.M.S.COLONYBEHIND BANK OF INDIAR.M.V 2ND STAGEBANGALORE560094*

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