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

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.

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.

cheers,
-shay.banon

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

On Dec 11, 8:03 pm, Shay Banon 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.

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.

cheers,
-shay.banon

great job!

On 12月12日, 上午11时03分, Shay Banon 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.

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.

cheers,
-shay.banon