# Just Puhsed: Allowing to highlight from source (no need for stored fields)

**URL:** <https://discuss.elastic.co/t/just-puhsed-allowing-to-highlight-from-source-no-need-for-stored-fields/3654>\
**Category:** Elasticsearch\
**Created:** [December 12, 2010, 3:03am UTC](https://discuss.elastic.co/t/just-puhsed-allowing-to-highlight-from-source-no-need-for-stored-fields/3654 "2010-12-12T03:03:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 12, 2010, 3:03am UTC](https://discuss.elastic.co/t/just-puhsed-allowing-to-highlight-from-source-no-need-for-stored-fields/3654/1 "2010-12-12T03:03:56Z")

</div>

Just pushed support for highlighting directly from source, without the need to store the fields as well: [https://github.com/elasticsearch/elasticsearch/issues/issue/561](https://github.com/elasticsearch/elasticsearch/issues/issue/561).

And, a small enhancement to choosing fields to load. There is no longer a need to prefix with \_source in order to load a field from the source document. If the requested field (or json sub substructure) is not mapped as stored, then it will automatically be extracted from the source. Here is the issue: [https://github.com/elasticsearch/elasticsearch/issues/issue/562](https://github.com/elasticsearch/elasticsearch/issues/issue/562).

cheers,  
-shay.banon

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [December 13, 2010, 5:00pm UTC](https://discuss.elastic.co/t/just-puhsed-allowing-to-highlight-from-source-no-need-for-stored-fields/3654/2 "2010-12-13T17:00:06Z")

</div>

Sweet!!! This will save us many GB in index size.

On Dec 11, 8:03 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Just pushed support for highlighting directly from source, without the need to store the fields as well:[Highlighting: Automatically use the field values extracted from \_source if not stored explicitly in the mapping · Issue #561 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/561).
> 
> And, a small enhancement to choosing fields to load. There is no longer a need to prefix with \_source in order to load a field from the source document. If the requested field (or json sub substructure) is not mapped as stored, then it will automatically be extracted from the source. Here is the issue:[Search Fields: If a field is not stored, automatically extract it from \_source (without the need for \_source prefix) · Issue #562 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/562).
> 
> cheers,  
> -shay.banon

---

<div class="post-metadata">

**Author:** ![medcl\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl_2/32/3297_2.png) [@medcl\_2](https://discuss.elastic.co/u/medcl_2)\
**Post date:** [December 14, 2010, 9:41am UTC](https://discuss.elastic.co/t/just-puhsed-allowing-to-highlight-from-source-no-need-for-stored-fields/3654/3 "2010-12-14T09:41:27Z")

</div>

great job!

On 12月12日, 上午11时03分, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Just pushed support for highlighting directly from source, without the need to store the fields as well:[Highlighting: Automatically use the field values extracted from \_source if not stored explicitly in the mapping · Issue #561 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/561).
> 
> And, a small enhancement to choosing fields to load. There is no longer a need to prefix with \_source in order to load a field from the source document. If the requested field (or json sub substructure) is not mapped as stored, then it will automatically be extracted from the source. Here is the issue:[Search Fields: If a field is not stored, automatically extract it from \_source (without the need for \_source prefix) · Issue #562 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/562).
> 
> cheers,  
> -shay.banon

---

<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, 4:15am UTC](https://discuss.elastic.co/t/just-puhsed-allowing-to-highlight-from-source-no-need-for-stored-fields/3654/4 "2017-07-06T04:15:23Z")

</div>


