I would like to dynamically show the user which field matched the request sent to Solr. For example, if I had a document
document field1: "yay" field2: "nay" dynamic_field_hurr_*: one: "yay" two: "nay"
and I asked "yay", is it possible for me to know that yay is found in field1 and dynamic_field_hurr_one?
It seems to me that I went through all the documentation, and thought that I should use the highlight for this, but I can not get it to work with dynamic fields. In normal fields, this is normal!
Small background: I use Solr.Net, and in the class I have for my document I have IDictionary<string, string> to dynamically add additional information. After some reading, I understood the dictionaries mapped to dynamic fields, and it works fine except for highlighting.
I also tried copying all the data from my dynamic field to a text field, but I donโt think there is a way to copy the โactual field nameโ? I can only get Solr to copy the value, which I think makes sense.
Any ideas?
source share