lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Heilbrunn <ben...@gmail.com>
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 <vaiju1981@gmail.com>:
> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message