mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Closes #227 - Adding back in the flattenWith step for the _source
This commit is contained in:
parent
7d41a4e735
commit
5b81b056b2
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ define(function (require) {
|
|||
// counts each time
|
||||
if (sortFn && hit._formatted) return;
|
||||
|
||||
// Flatten the fields
|
||||
hit._source = _.flattenWith('.', hit._source);
|
||||
|
||||
hit._formatted = _.mapValues(hit._source, function (value, name) {
|
||||
// add up the counts for each field name
|
||||
if (counts[name]) counts[name] = counts[name] + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue