public abstract class FacetBuilder extends Object implements ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
FacetBuilder.Mode |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected FilterBuilder |
facetFilter |
protected Boolean |
global |
protected FacetBuilder.Mode |
mode |
protected String |
name |
protected String |
nested |
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
FacetBuilder(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFilterFacetAndGlobal(XContentBuilder builder,
ToXContent.Params params) |
FacetBuilder |
facetFilter(FilterBuilder filter) |
FacetBuilder |
global(boolean global)
Marks the facet to run in a global scope, not bounded by any query.
|
FacetBuilder |
mode(FacetBuilder.Mode mode) |
FacetBuilder |
nested(String nested)
Sets the nested path the facet will execute on.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toXContent
protected final String name
protected FilterBuilder facetFilter
protected Boolean global
protected String nested
protected FacetBuilder.Mode mode
protected FacetBuilder(String name)
public FacetBuilder facetFilter(FilterBuilder filter)
public FacetBuilder nested(String nested)
public FacetBuilder global(boolean global)
public FacetBuilder mode(FacetBuilder.Mode mode)
protected void addFilterFacetAndGlobal(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.