Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

Matched words from document - Stemmed and Synonyms

venkatesham.gundu@igate.com

2013-07-24


Author LoginPost Reply
I am looking for a feature in solr that will give me all matched words in the
document when I search with a word.
My field uses Stemming and as well as Synonym filters.

For example I have documents and part of the text goes like below
1.We were very careful about my surgery
2.are still needing shunts, or Decompression Surgeries, Taps work for som
3.prior to surgeries and Berinert as a rescue drug.
4.identified the disease as we were in the same area of operations as
outcome from dioxins

When I am search with surgery its giving all 4 documents that is fine, but I
need to know what are the words in each doc that matched with my search
query "surgery", here - 1. surgery 2. Surgeries and 3. surgeries
4.operations - from each doc.

I have tried using Highlighter but its not only giving matched words also
gives unwanted words and also it it not highlighting the synonym matched
words - in this example operation-

Thanks
Venkatesham Gundu





--
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@(protected)
For additional commands, e-mail: java-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.