lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Heilbrunn <>
Subject Re: How to get matched terms
Date Thu, 28 Jan 2010 16:31:02 GMT
You could use Query.extractTerms(..) and then search for possible
matches in the field term vector (requires stored TV).

2010/1/28 Vaijanath Rao <>:
> Hi All,
> What is the simplest way of getting the matched terms of the query with
> respect to the document. So for example let's say a document has field X and
> the contains of the field are "a b c" now when I do a search for 'b c'. The
> document will be returned I want to get back the terms that this document
> matched with the query terms. Can someone tell me the easiest way to
> accomplish this.
> --Thanks and Regards
> Vaijanath
> --
> I am feeling fine, healthier and Happier, what about you

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

View raw message