Count number of matched words in solr?

Viewed 400

I want to count number of matched words in solr, for example:

  • Field: text: "I want to go to school every day".
  • My query: "go to today"

=> number of matched words = 2.

How can I do that? Can I setup it in solrconfig.xml? Thanks!

1 Answers
Related