fixed some lint issues and function name
This commit is contained in:
parent
b4052fc921
commit
a409396f69
|
@ -239,13 +239,12 @@ function getFilters (input) {
|
||||||
'query': {
|
'query': {
|
||||||
'bool': {
|
'bool': {
|
||||||
'must': filters,
|
'must': filters,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
return filterQuery;
|
return filterQuery;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -261,7 +260,7 @@ function getAutoComplete (query) {
|
||||||
query: {
|
query: {
|
||||||
bool: {
|
bool: {
|
||||||
must : getAutoCompleteQuery(query),
|
must : getAutoCompleteQuery(query),
|
||||||
filter: getFilter(query),
|
filter: getFilters(query),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue