Skip to content

Commit

Permalink
Deprecated field [all_fields] used, replaced by [Set [fields] to *
Browse files Browse the repository at this point in the history
…instead]" (#32307) (#32452)
  • Loading branch information
alexwizp authored Mar 6, 2019
1 parent 2b44ab2 commit 889558d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ function getFieldsForTypes(searchFields, types) {

if (!searchFields || !searchFields.length) {
return {
all_fields: true
lenient: true,
fields: ['*'],
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ describe('searchDsl/queryParams', () => {
{
simple_query_string: {
query: 'us*',
all_fields: true
lenient: true,
fields: ['*'],
}
}
]
Expand Down Expand Up @@ -265,7 +266,8 @@ describe('searchDsl/queryParams', () => {
{
simple_query_string: {
query: 'us*',
all_fields: true
lenient: true,
fields: ['*'],
}
}
]
Expand Down Expand Up @@ -294,7 +296,8 @@ describe('searchDsl/queryParams', () => {
{
simple_query_string: {
query: 'us*',
all_fields: true
lenient: true,
fields: ['*'],
}
}
]
Expand Down Expand Up @@ -323,7 +326,8 @@ describe('searchDsl/queryParams', () => {
{
simple_query_string: {
query: 'us*',
all_fields: true
lenient: true,
fields: ['*'],
}
}
]
Expand Down Expand Up @@ -767,7 +771,8 @@ describe('searchDsl/queryParams', () => {
must: [
{
simple_query_string: {
all_fields: true,
lenient: true,
fields: ['*'],
default_operator: 'AND',
query: 'foo',
},
Expand Down

0 comments on commit 889558d

Please sign in to comment.