Query DSL: Allow to set boost on has_child query, closes #884.
This commit is contained in:
parent
583fa4a0e1
commit
6ace8ba0d8
|
@ -73,6 +73,8 @@ public class HasChildQueryParser extends AbstractIndexComponent implements XCont
|
||||||
childType = parser.text();
|
childType = parser.text();
|
||||||
} else if ("_scope".equals(currentFieldName)) {
|
} else if ("_scope".equals(currentFieldName)) {
|
||||||
scope = parser.text();
|
scope = parser.text();
|
||||||
|
} else if ("boost".equals(currentFieldName)) {
|
||||||
|
boost = parser.floatValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue