lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claes Holmerson <>
Subject Understanding how indexing works
Date Thu, 03 Jul 2003 12:36:55 GMT

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?


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,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message