The debugQuery=true parameter will give you an "explain" section that details what terms matched in each document. There is an XML version as well ("debug.explain.structured").

Unfortunately, these are the analyzed (stemmed, lower case, synonyms expanded) terms. Pick your poison!

-- Jack Krupansky

-----Original Message----- From: venkatesham.gu...@igate.com
Sent: Wednesday, July 24, 2013 4:19 AM
To: solr-user@lucene.apache.org
Subject: Matched words from document - Stemmed and Synonyms

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 search 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



--
View this message in context: http://lucene.472066.n3.nabble.com/Matched-words-from-document-Stemmed-and-Synonyms-tp4079969.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to