lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Rossini" <>
Subject Extract terms not by reader, but by documents
Date Tue, 04 Sep 2007 21:01:39 GMT
Hi all,

    In some custom highlighting, I often write a code like this:

       Set<Term> matchedTerms = new HashSet<Term>();

    With this code the Term Set gets populated by the matched query in your
whole index. Is it possible to this with a document instead of the reader?
Something like
query.rewrite(documentId).extractTerms(matchedTerms) ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message