# Highlighter - getting the field's content from external storage

**URL:** <https://discuss.elastic.co/t/highlighter-getting-the-fields-content-from-external-storage/23017>\
**Category:** Elasticsearch\
**Created:** [March 31, 2015, 5:26pm UTC](https://discuss.elastic.co/t/highlighter-getting-the-fields-content-from-external-storage/23017 "2015-03-31T17:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TJ\_Kolev](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@TJ\_Kolev](https://discuss.elastic.co/u/TJ_Kolev)\
**Post date:** [March 31, 2015, 5:26pm UTC](https://discuss.elastic.co/t/highlighter-getting-the-fields-content-from-external-storage/23017/1 "2015-03-31T17:26:34Z")

</div>

Greetings,

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](http://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  
at all.

I can copy the whole code and adjust it, but that seems heavy handed to me.

Any other (more elegant) ideas are appreciated.

Thank you.  
TJ Kolev

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/36f883c6-6a65-4546-895f-2f81f3f72f9e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/36f883c6-6a65-4546-895f-2f81f3f72f9e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:22am UTC](https://discuss.elastic.co/t/highlighter-getting-the-fields-content-from-external-storage/23017/2 "2017-07-06T00:22:41Z")

</div>

Closed on July 6, 2017, 12:22am UTC


