You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Chris Fraschetti <fr...@gmail.com> on 2004/09/21 23:54:37 UTC

indexing date ranges

is it most effecient to index or not index 'numeric' ranges that i
will do a range search by    epoc_date:[1104480000 TO 820483200]   
would be be better to treat it as Field.Keyword or Field.UnIndexed  ?

-- 
___________________________________________________
Chris Fraschetti, Student CompSci System Admin
University of San Francisco
e fraschetti@gmail.com | http://meteora.cs.usfca.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: indexing date ranges

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
If it is unindexed, then you cannot query on it, so you do not have a 
choice.  The other option is to use a field that is indexed, not 
tokenized, and not stored (you have to use new Field(...) to accomplish 
that) if you don't want to store the field data.

	Erik


On Sep 21, 2004, at 5:54 PM, Chris Fraschetti wrote:

> is it most effecient to index or not index 'numeric' ranges that i
> will do a range search by    epoc_date:[1104480000 TO 820483200]
> would be be better to treat it as Field.Keyword or Field.UnIndexed  ?
>
> -- 
> ___________________________________________________
> Chris Fraschetti, Student CompSci System Admin
> University of San Francisco
> e fraschetti@gmail.com | http://meteora.cs.usfca.edu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org