fixed some lint issues and function name
This commit is contained in:
parent
b4052fc921
commit
a409396f69
1 changed files with 6 additions and 7 deletions
|
@ -235,17 +235,16 @@ function getFilters (input) {
|
|||
if (filters.length > 0) {
|
||||
const filterQuery = {
|
||||
'nested': {
|
||||
'path': 'value',
|
||||
'path' : 'value',
|
||||
'query': {
|
||||
'bool': {
|
||||
'must': filters,
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
return filterQuery;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
@ -261,7 +260,7 @@ function getAutoComplete (query) {
|
|||
query: {
|
||||
bool: {
|
||||
must : getAutoCompleteQuery(query),
|
||||
filter: getFilter(query),
|
||||
filter: getFilters(query),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue