FrancoisZhang commented on a change in pull request #494:
URL: https://github.com/apache/jackrabbit-oak/pull/494#discussion_r807267328
##########
File path:
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java
##########
@@ -568,7 +568,7 @@ private boolean visitTerm(String propertyName, String text,
String boost, boolea
if (boost != null) {
fullTextQuery.boost(Float.parseFloat(boost));
}
- BoolQueryBuilder shouldBoolQueryWrapper =
boolQuery().should(fullTextQuery);
+ BoolQueryBuilder shouldBoolQueryWrapper =
boolQuery().must(fullTextQuery);
Review comment:
@fabriziofortino thanks, that makes sense! let me change that way
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]