change scope to _score
This commit is contained in:
parent
d73a459f1e
commit
a84e0a49b7
|
@ -60,7 +60,7 @@ public class HasChildFilterBuilder extends BaseFilterBuilder {
|
|||
queryBuilder.toXContent(builder, params);
|
||||
builder.field("type", childType);
|
||||
if (scope != null) {
|
||||
builder.field("scope", scope);
|
||||
builder.field("_scope", scope);
|
||||
}
|
||||
if (filterName != null) {
|
||||
builder.field("_name", filterName);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class HasChildFilterParser extends AbstractIndexComponent implements XCon
|
|||
} else if (token.isValue()) {
|
||||
if ("type".equals(currentFieldName)) {
|
||||
childType = parser.text();
|
||||
} else if ("scope".equals(currentFieldName)) {
|
||||
} else if ("_scope".equals(currentFieldName)) {
|
||||
scope = parser.text();
|
||||
} else if ("_name".equals(currentFieldName)) {
|
||||
filterName = parser.text();
|
||||
|
|
|
@ -65,7 +65,7 @@ public class HasChildQueryBuilder extends BaseQueryBuilder {
|
|||
queryBuilder.toXContent(builder, params);
|
||||
builder.field("type", childType);
|
||||
if (scope != null) {
|
||||
builder.field("scope", scope);
|
||||
builder.field("_scope", scope);
|
||||
}
|
||||
if (boost != 1.0f) {
|
||||
builder.field("boost", boost);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class HasChildQueryParser extends AbstractIndexComponent implements XCont
|
|||
} else if (token.isValue()) {
|
||||
if ("type".equals(currentFieldName)) {
|
||||
childType = parser.text();
|
||||
} else if ("scope".equals(currentFieldName)) {
|
||||
} else if ("_scope".equals(currentFieldName)) {
|
||||
scope = parser.text();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ public class TopChildrenQueryBuilder extends BaseQueryBuilder {
|
|||
queryBuilder.toXContent(builder, params);
|
||||
builder.field("type", childType);
|
||||
if (scope != null) {
|
||||
builder.field("scope", scope);
|
||||
builder.field("_scope", scope);
|
||||
}
|
||||
if (score != null) {
|
||||
builder.field("score", score);
|
||||
|
|
|
@ -72,7 +72,7 @@ public class TopChildrenQueryParser extends AbstractIndexComponent implements XC
|
|||
} else if (token.isValue()) {
|
||||
if ("type".equals(currentFieldName)) {
|
||||
childType = parser.text();
|
||||
} else if ("scope".equals(currentFieldName)) {
|
||||
} else if ("_scope".equals(currentFieldName)) {
|
||||
scope = parser.text();
|
||||
} else if ("score".equals(currentFieldName)) {
|
||||
scoreType = TopChildrenQuery.ScoreType.fromString(parser.text());
|
||||
|
|
Loading…
Reference in New Issue