Hi Forum, Is it possible for a Solr query to return the term(s) that matched a particular field/query?
For example, let's say there's a field like this: raw="This is a raw text field that happens to contain some text that's also in the action field value..." And another field in a different index like this: action="contain" And they are tokenized on whitespace. If my query is: q={!join from=action to=raw fromIndex=TheActionIndex}* If 'action' was in the same index, it would be ok, but the problem is the match in 'TheActionIndex' isn't returned as it's in a different index. The query returns matching raw documents, but not *which* term was matched to cause it to be returned. I've tried the highlighting trick, but that doesn't work here - it returns highlighting on all terms. It would be great to get these back as facets, but getting them back at all would be great. Is it possible to have the query return which term(s) from 'raw' actually matched the value in 'action'? Maybe an extended TermsComponent to add only matched terms to the response payload or similar? Many thanks, Peter