pull/6266/merge
IBRMHIRI 1 year ago committed by GitHub
commit e5e060e2e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -137,7 +137,7 @@ module.exports = {
description: r._source.description description: r._source.description
})), })),
suggestions: _.reject(_.get(results, 'suggest.suggestions', []).map(s => _.get(s, 'options[0].text', false)), s => !s), suggestions: _.reject(_.get(results, 'suggest.suggestions', []).map(s => _.get(s, 'options[0].text', false)), s => !s),
totalHits: _.get(results, 'body.hits.total.value', _.get(results, 'body.hits.total', 0)) totalHits: _.get(results, 'body.hits.hits', []).map(r => r.length)
} }
} catch (err) { } catch (err) {
WIKI.logger.warn('Search Engine Error: ', _.get(err, 'meta.body.error', err)) WIKI.logger.warn('Search Engine Error: ', _.get(err, 'meta.body.error', err))

Loading…
Cancel
Save