chriseldredge / Lucene.Net.Linq

LINQ provider to run native queries on a Lucene.Net index
Other
151 stars 66 forks source link

TextFragments and Highlighting Support #69

Closed denniseffing closed 9 years ago

denniseffing commented 10 years ago

It would appear that there is no way to generate TextFragments for the Highlighter of Lucene without implementing a new IndexSearcher, QueryParser and TokenStream which would completely bypass your Lucene.Net.Linq Library/LuceneDataProvider-Concept.

Are there any plans for supporting this or would you mind looking into this?

chriseldredge commented 10 years ago

This could probably be accomplished in a similar method as in MoreLikeThisSample.

I haven't worked with TextFragments but this gives you an extension point where you can perform additional operations while mapping a result, store them in memory and retrieve them after your query executes.

I don't have additional plans for building this directly into the LINQ query syntax.