tags:

views:

58

answers:

2

After having performed a search in Lucene/Solr without having specified a field, how can I know in which fields of a result document the search string was found (and how often)?

+3  A: 

You could use Query Highlighting.

Pascal Dimassimo
How could this help?
Hans Stricker
Query Highlighting will highlights all occurrences of a query in a field.
Pascal Dimassimo
+3  A: 

Try setting debugQuery=on. See this example.

Mauricio Scheffer