Take a look at the explain section when you add the debugQuery=true parameter. You can additionally set debug.explain.structured=true to get the scoring explanation in XML if parsing the text is a problem for you.

-- Jack Krupansky

-----Original Message----- From: Prathik Puthran
Sent: Thursday, June 20, 2013 9:55 AM
To: solr-user@lucene.apache.org
Subject: Getting the String which matched in the document as response

Hi,

Is it possible to get the exact matched string in the index in the select
response of Solr.

For eg : If the search query is "Hello World" and the query parser is "OR"
solr would return all documents which matched both "Hello World", only
"Hello" or only "World".
Now I want to know which of the returned documents matched both "Hello
World" and which of them matched only "Hello" or "World".

Is it possible to get this info?

Thanks,
Prathik

Reply via email to