You can easily find whether a term is in the index with TermEnum/TermDocs
(I think TermEnum is all you really need).

Except, you'll probably also have to keep an internal map of IDs added since
the searcher was opened and check against that too.

Best
Erick

On Tue, Mar 11, 2008 at 11:04 AM, Ion Badita <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I want to create an index with one unique field.
> Before inserting a document i must be sure that "unique field" is unique.
>
>
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to