Hi SOLR Community,
I am investigating some different options with highlighting, and one
feature I wanted to build would require matching a highlighted match back
to the original matchin token. I couldn't find a way to do that in the
documentation, so I'm guessing that it doesn't exist yet. The application
for this would be to leverage solr to understand the query -> field
matching with many field types with varying matching rules.
The simplest example of what I'd like would be something like this in
english: A document like
{ "id": "test", "comment_en": "we like dogs" }
..and a query like "dog OR cat". I'd like highlighting to be able to return
something like this:
{"highlighting": {
"text_en": {
"comment_en": ["we like *<em source='dog'>dogs</em>*" ]}}}
So the essence is that I don't need to know anything about english matching
rules (in this case plurals) outside of solr to know how it came to the
conclusion that this document was a match.
Has anyone come up with a solution to this before? Does anyone know an
existing feature request for this if not?
Thanks!
Stephen