Skip to content

Commit 6ace8ba

Browse files
committed
Query DSL: Allow to set boost on has_child query, closes elastic#884.
1 parent 583fa4a commit 6ace8ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/HasChildQueryParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public class HasChildQueryParser extends AbstractIndexComponent implements XCont
7373
childType = parser.text();
7474
} else if ("_scope".equals(currentFieldName)) {
7575
scope = parser.text();
76+
} else if ("boost".equals(currentFieldName)) {
77+
boost = parser.floatValue();
7678
}
7779
}
7880
}

0 commit comments

Comments
 (0)