Skip to content

Commit

Permalink
[refactor] fields->stored_fields on search requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Jun 24, 2016
1 parent 5ca4ea1 commit d318451
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
"csv-parse": "1.1.0",
"d3": "3.5.6",
"dragula": "3.7.0",
"elasticsearch": "10.1.2",
"elasticsearch-browser": "10.1.2",
"elasticsearch": "12.0.0-rc2",
"elasticsearch-browser": "12.0.0-rc2",
"even-better": "7.0.2",
"expiry-js": "0.1.7",
"exports-loader": "0.6.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.service('savedDashboards', function (Promise, SavedDashboard, kbnIndex, e
query: {
simple_query_string: {
query: searchString + '*',
fields: ['title^3', 'description'],
stored_fields: ['title^3', 'description'],
default_operator: 'AND'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.service('savedSearches', function (Promise, config, kbnIndex, es, createN
query: {
simple_query_string: {
query: searchString + '*',
fields: ['title^3', 'description'],
stored_fields: ['title^3', 'description'],
default_operator: 'AND'
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/kibana/public/doc/controllers/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ app.controller('doc', function ($scope, $route, es, timefilter) {
values: [$route.current.params.id]
}
},
fields: computedFields.fields,
stored_fields: computedFields.fields,
script_fields: computedFields.scriptFields,
fielddata_fields: computedFields.fielddataFields
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ modules.get('apps/management')
_.defaults(this.indexPattern, {
id: this.patternInput.defaultValue,
title: 'filebeat-*',
fields: _(sampleFields)
stored_fields: _(sampleFields)
.map((field, fieldName) => {
return {name: fieldName, type: field.type};
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ app.service('savedVisualizations', function (Promise, es, kbnIndex, SavedVis, Pr
query: {
simple_query_string: {
query: searchString + '*',
fields: ['title^3', 'description'],
stored_fields: ['title^3', 'description'],
default_operator: 'AND'
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/index_patterns/_get_computed_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function () {
});

return {
fields: ['*', '_source'],
storedFields: ['*', '_source'],
scriptFields: scriptFields,
fielddataFields: fielddataFields
};
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/index_patterns/_get_ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function GetIndexPatternIdsFn(es, kbnIndex) {
cachedPromise = es.search({
index: kbnIndex,
type: 'index-pattern',
fields: [],
storedFields: [],
body: {
query: { match_all: {} },
size: 10000
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/utils/scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Scanner.prototype.scanAndMap = function (searchString, options, mapFn) {
query: {
simple_query_string: {
query: searchString + '*',
fields: ['title^3', 'description'],
stored_fields: ['title^3', 'description'],
default_operator: 'AND'
}
}
Expand Down

0 comments on commit d318451

Please sign in to comment.