lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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.



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message