java - Solr: How to show if searched keywords are matched or not? -
i don´t want highlight searched keywords, need information keyword exists in document.
my search looks this: q=keyword1 or keyword2 or keyword3 or keyword4
the result should this: document has keyword1 , keyword 3, document b has keyword 3
i didn´t found approach requirement. should parse manually highlight snippet or there others approaches?
there seems no out of box way know keywords matched document.
options highlight, need configure return search terms found.
can run debugquery return matches documents.
both of them expensive operations.