Yes, there is a document number assigned to each doc, as far as I know,
but I don't think you can use it for searching.  Yes, holes get created
after deletions, and optimization does renumber the docs...I think I
read that somewhere....check this list's archives.

Otis


--- John Cwikla <[EMAIL PROTECTED]> wrote:
> 
> 
> I was wondering if lucene had some way (internal record numbers,
> whatever)
> so that I could limit search results to say a range of documents, in
> the
> order they were added?
> 
> I understand that I could have a field called "myownrecordnumber" and
> put a
> number
> into it. This won't work for me as the index is constantly being
> added to
> and
> removed from, and my ultimate goal is to use this so I can start at a
> particular
> point in time (record number) and search the next 1000 documents that
> were
> added.
> (We using the results from lucene in some analytics and batch up the
> runs)
> 
> If I use "myownrecordnumber" I would have to reindex and fix the
> numbers  to
> get the 
> same effect which is not a possibility as it takes too long, and
> requires
> too much downtime.
> 
> Over time there would obviously be alot of holes, and what I'd like
> is for
> optimizing
> the index to magically fix/reorder the record numbers if they existed
> :)
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to