Is it possible to get a position for a keyword / field in Lucene Solr?

Is there a way to get the match field / position for each keyword for each relevant document from solr?

For example, if the heading "Is it possible to get a position for a keyword / field in Lucene Solr?" and the request is the โ€œsolr keywordโ€, I would like to get in addition to doc-id (usually I only need a doc-id, not a complete document), something that can tell me that matches:

solr: title: 9 keyword: title: 3 

Iโ€™m sure that such information is computed at the time the request is executed (for phrasal requests), but can I return them to the application?

Thanks!

+4
source share

All Articles