lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Intersect two indices
Date Sat, 26 Nov 2005 22:17:52 GMT

: Im interested in intersecting two indices. Or more exactly, I only want
: those terms of index A that also occur in index B.
: How could i do that (efficiently)?

look at the TermEnum class, and the IndexReader.terms() method.  It
iterates over the Terms in order.  If you open a reader for each index,
and iterate in sequence it should be easy to get what you want.


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

View raw message