lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: Date ranges - getting the approach right
Date Sat, 15 Jul 2006 21:11:35 GMT
On 7/15/06, Erick Erickson <erickerickson@gmail.com> wrote:
> I'm assuming that you only add to your index,
> and don't optimize it after deletions or do anything else that would change
> the document IDs

That won't quite work... add() after delete() can change document ids
because it can cause a segment merge which removes deleted docs.

> If that's all true, you could just store the first and last Doc ID for each
> day

That you could still sort-of do.  Even though docids can change, they
won't be reordered with respect to eachother.  So if you index in date
order, you can do a lookup on each endpoint and know that all the ids
between are in the range.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

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


Mime
View raw message