kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
21 lines (18 loc) • 481 B
JavaScript
import _ from 'lodash';
let longString = Array(200).join('_');
export default function (id, mapping) {
function fakeVals(type) {
return _.mapValues(mapping, function (f, c) {
return c + '_' + type + '_' + id + longString;
});
}
return {
_id: id,
_index: 'test',
_source: fakeVals('original'),
sort: [id],
$$_formatted: fakeVals('formatted'),
$$_partialFormatted: fakeVals('formatted'),
$$_flattened: fakeVals('_flattened')
};
};