Obtain metadata associated with matched content in Solr/Lucene
问题 I've a large set of text documents which I will index with Solr, in a format where each line of text has associated metadata. For example: #metadata1 A line of text. #metadata2 Another long, broken line of #metadata3 text that should be searchable. I'd like to index this such that the content is searchable, including phrase matches spanning multiple lines, but not the metadata. However, I can't discard the metadata: I would like to have any matches still have the associated metadata. E.g. A