I would like to dynamically show to the user which field matched the query that was sent to Solr. For example, if I had a document
document
field1: "yay"
field2: "nay"
dynamic_field_hurr_*:
one: "yay"
two: "nay"
and i queried for "yay", would it be possible for me to know that yay was found in field1 and dynamic_field_hurr_one?
I feel like I've been through the whole documentation, and thought I should use highlighting for this, but I can't get it to work on dynamic fields. On normal fields it works fine!
A little background: I'm using Solr.Net and in the class I map to my document I have a IDictionary<string, string>
to dynamically add additional information. After some reading up, I figured dictionaries mapped to dynamicfields, and it works perfectly, except for highlighting.
I also tried copying all data from my dynamic field into a text field, but I don't think there's a way to copy the "actual field name"? I can only get Solr to copy the value, which I guess makes sense.
Any ideas?