add filter and global support
This commit is contained in:
parent
c5811eb060
commit
e77d1d0147
|
@ -194,6 +194,7 @@ public class GeoDistanceFacetBuilder extends AbstractFacetBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.startObject(name);
|
builder.startObject(name);
|
||||||
|
|
||||||
builder.startObject(GeoDistanceFacetCollectorParser.NAME);
|
builder.startObject(GeoDistanceFacetCollectorParser.NAME);
|
||||||
|
|
||||||
if (geohash != null) {
|
if (geohash != null) {
|
||||||
|
@ -235,6 +236,16 @@ public class GeoDistanceFacetBuilder extends AbstractFacetBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
|
|
||||||
|
if (filter != null) {
|
||||||
|
builder.field("filter");
|
||||||
|
filter.toXContent(builder, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (global != null) {
|
||||||
|
builder.field("global", global);
|
||||||
|
}
|
||||||
|
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue