lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Continuously iterate over documents in index
Date Thu, 15 Jul 2010 00:59:57 GMT
Hmmmm, if you somehow know the last date you processed, why wouldn't using a
range query work for you? I.e.
date:[<recorded last date> TO <new date to record (NOW?)>]?


On Wed, Jul 14, 2010 at 10:37 AM, Max Lynch <> wrote:

> You could have a field within each doc say "Processed" and store a
> > value Yes/No, next run a searcher query which should give you the
> > collection of unprocessed ones.
> >
> That sounds like a reasonable idea, and I just realized that I could have
> done that in a way specific to my application.  However, I already tried
> doing something with a MatchAllDocsQuery with a custom collector and sort
> by
> date.  I store the last date and time of a doc I processed and process only
> newer ones.

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