lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Document numbers and ids
Date Sun, 06 Feb 2005 20:00:40 GMT
: > care about their content. I only want to know a particular numeric
: > field from
: > document (id of document's category).
: > I also need to know how many docs in category were found, so I can't
: > index

: You should explore the use of IndexReader.  Index your documents with
: category id field, and use the methods on IndexReader to find all
: unique categories (TermEnum).

to expand on erik's suggestion: once you know the complete list of
categories you iterate over then and execute your search once per
category, filtering each time on the category Id (to determine the number
of results from that category).


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

View raw message