tihom88 commented on code in PR #1246:
URL: https://github.com/apache/jackrabbit-oak/pull/1246#discussion_r1412269116
##########
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java:
##########
@@ -820,9 +820,10 @@ private static QueryStringQuery.Builder
fullTextQuery(String text, String fieldN
for(PropertyDefinition pd:
pr.indexingRule.getNodeScopeAnalyzedProps()) {
qsqBuilder.fields(pd.name + "^" + pd.boost);
}
- }
- if (dynamicBoosEnabled) {
- qsqBuilder.fields(ElasticIndexDefinition.DYNAMIC_BOOST_FULLTEXT +
"^" + DYNAMIC_BOOST_WEIGHT);
+ // dynamic boost is included only for fulltext field
+ if (dynamicBoosEnabled) {
Review Comment:
nitpick: typo
--
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]