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


(Shay Banon) #1

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


(ppearcy) #2

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: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


(medcl-2) #3

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: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


(system) #4