Hi,

In my job, I have become the new maintainer of a search feature that uses Lucene. I am trying to understand how it works by examining the index it produces.

When I list index fields by opening an IndexReader, looping over documents, then looping over fields with Document.fields(), I see a number of fields. However, I don't see the fields that are searchable within this document.

If I do IndexReader.terms() directly and then Term.field() on each term, I see fields that no longer should exist since the documents containing them have been deleted. Is this like it should be?

How can I easily tell if a term is no longer searchable (or rather successfully found, when searching), apart from actually doing the search? Is there a way to list those terms?

Thanks,
Claes

--
Claes Holmerson
Polopoly - Cultivating the information garden
Kungsgatan 88, SE-112 27 Stockholm, SWEDEN
Direct: +46 8 506 782 59
Mobile: +46 704 47 82 59
Fax:  +46 8 506 782 51
[EMAIL PROTECTED], http://www.polopoly.com



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



Reply via email to