Hello, I am new to solr and lucene and have a question concerning information about the term matching in lucene.
For a few reasons (mainly field based security restrictions) I need to know which fields in my result documents matched the query e.g. I would like to have something like <doc> <arr name="matching fields"> <str>field1</... I would also like to have highlighting/snippets over all fields without appending all of them with hl.fl= . Something like hl.fl=* (would this be a big performance issue?) This is because I might have a lot of dynamic fields in the future, that also should be highlighted. From the highlight information I could then retrieve the fields where a queryterm matched.... Another possibilty would be to retrieve all matched terms (not the query terms, but the ones that resulted in a match), like in the highlighting, I could then parse the results myself again (need to do this for some reasons anyway) and look in which fields they match. Does anybody know how to solve this problem? Or does anybody maybe already have a RequestHandler or Highlighter that does this? Any help would be much appreciated. Thank you, Mathis