lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Rossini" <rafael.ross...@gmail.com>
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>();
       query.rewrite(reader).extractTerms(matchedTerms);

    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) ?

[]s
     Rossini

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