Added the basic search, no sorting, no extra stuff.
Added the basic search, no sorting, no extra stuff, raw from elasticsearch.
This commit is contained in:
parent
e9ff812273
commit
dd74ca7c0a
5 changed files with 73 additions and 16 deletions
server/utils/importer
|
@ -51,7 +51,7 @@ function send (arr) { // Modular change output here :)
|
|||
if (claim.name && claim.value) {
|
||||
claim.suggest_name = {
|
||||
input : claim.name,
|
||||
weight: 20,
|
||||
weight: 30,
|
||||
};
|
||||
if (claim.value.claimType === 'streamType' && claim.value.stream.metadata && claim.value.stream.metadata.description) {
|
||||
claim.suggest_desc = {
|
||||
|
@ -66,7 +66,7 @@ function send (arr) { // Modular change output here :)
|
|||
id : claim.claimId,
|
||||
body : claim,
|
||||
}, function (error, response) {
|
||||
if (error) { status.err = error }
|
||||
if (error) { status.err = error; console.log(error) }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue