Is there any way to have the FVH (or any other highlighter) work on an
externally supplied field content?
We index a lot of documents, and their content is often quite large. We do
not want to store that in the index. I am looking for a way to hook into
the highlighter and provide the content when it is needed. I was thinking
to extend the FastVectorHighlighter and provide the functionality somehow.
Looking at the code I can't readily find any convenient points to do this.
I am transitioning from an in-house indexing solution based on Lucene.Net
to Elasticsearch. I was able to do the above by
extending ScoreOrderFragmentsBuilder, overriding its CreateFragments()
method, and then passing that custom fragments builder
to FastVectorHighlighter's constructor. But in
Elasticsearch's FastVectorHighlighter its fragmentsBuilder is not exposed
I can copy the whole code and adjust it, but that seems heavy handed to me.
Any other (more elegant) ideas are appreciated.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/36f883c6-6a65-4546-895f-2f81f3f72f9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.