fix(eslint) Run lint-fix
This commit is contained in:
parent
ea000dcfc8
commit
eb5c3acf7c
2 changed files with 61 additions and 62 deletions
|
@ -22,23 +22,23 @@ function getResults (input) {
|
|||
if (input.size === undefined) input.size = 10;
|
||||
if (input.from === undefined) input.from = 0;
|
||||
return eclient.search({
|
||||
index: "claims",
|
||||
_source: ["name", "value", "claimId"],
|
||||
index : 'claims',
|
||||
_source: ['name', 'value', 'claimId'],
|
||||
body : {
|
||||
"query": {
|
||||
"bool": {
|
||||
"must": {
|
||||
"query_string": {
|
||||
"query": '*' + input.s.trim() + '*',
|
||||
"fields": [
|
||||
"name",
|
||||
"value.stream.metadata.author",
|
||||
"value.stream.metadata.title",
|
||||
"value.stream.metadata.description"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
'query': {
|
||||
'bool': {
|
||||
'must': {
|
||||
'query_string': {
|
||||
'query' : '*' + input.s.trim() + '*',
|
||||
'fields': [
|
||||
'name',
|
||||
'value.stream.metadata.author',
|
||||
'value.stream.metadata.title',
|
||||
'value.stream.metadata.description',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
size: input.size,
|
||||
from: input.from,
|
||||
|
@ -50,22 +50,22 @@ function getAutoComplete (input) {
|
|||
if (input.size === undefined) input.size = 10;
|
||||
if (input.from === undefined) input.from = 0;
|
||||
return eclient.search({
|
||||
index: "claims",
|
||||
_source: ["name", "value.stream.metadata.title", "value.stream.metadata.author"],
|
||||
index : 'claims',
|
||||
_source: ['name', 'value.stream.metadata.title', 'value.stream.metadata.author'],
|
||||
body : {
|
||||
"query": {
|
||||
"bool": {
|
||||
"must": {
|
||||
"query_string": {
|
||||
"query": "*" + input.s.trim() + "*",
|
||||
"fields": [
|
||||
"name",
|
||||
"value.stream.metadata.title",
|
||||
"value.stream.metadata.author"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
'query': {
|
||||
'bool': {
|
||||
'must': {
|
||||
'query_string': {
|
||||
'query' : '*' + input.s.trim() + '*',
|
||||
'fields': [
|
||||
'name',
|
||||
'value.stream.metadata.title',
|
||||
'value.stream.metadata.author',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
size: input.size,
|
||||
from: input.from,
|
||||
|
|
|
@ -60,7 +60,6 @@ function getClient () {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
// Check that our cache file exist.
|
||||
fileExists(path.join(appRoot.path, 'claimTrieCache.json'), (err, exists) => {
|
||||
if (err) { throw err };
|
||||
|
|
Loading…
Add table
Reference in a new issue