You could use Query.extractTerms(..) and then search for possible matches in the field term vector (requires stored TV).
2010/1/28 Vaijanath Rao <vaiju1...@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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org