Skip to content

Commit 53c6463

Browse files
committed
ES query explain
1 parent c410f07 commit 53c6463

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/routes/projects/list.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ const parseElasticSearchCriteria = (criteria, fields, order) => {
225225
}
226226
if (fullTextQuery) {
227227
body.query = _.merge(body.query, fullTextQuery);
228+
if (body.query.bool) {
229+
body.query.bool.minimum_should_match = 1;
230+
}
228231
}
229232

230233
if (fullTextQuery || boolQuery.length > 0) {

0 commit comments

Comments
 (0)