|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.facet.AbstractFacetBuilder org.elasticsearch.search.facet.range.RangeScriptFacetBuilder
public class RangeScriptFacetBuilder
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from class org.elasticsearch.search.facet.AbstractFacetBuilder |
---|
facetFilter, name, nested, scope |
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
RangeScriptFacetBuilder(java.lang.String name)
|
Method Summary | |
---|---|
RangeScriptFacetBuilder |
addRange(double from,
double to)
Adds a range entry with explicit from and to. |
RangeScriptFacetBuilder |
addUnboundedFrom(double to)
Adds a range entry with explicit to and unbounded from. |
RangeScriptFacetBuilder |
addUnboundedTo(double from)
Adds a range entry with explicit from and unbounded to. |
RangeScriptFacetBuilder |
facetFilter(FilterBuilder filter)
|
RangeScriptFacetBuilder |
global(boolean global)
Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). |
RangeScriptFacetBuilder |
keyScript(java.lang.String keyScript)
|
RangeScriptFacetBuilder |
lang(java.lang.String lang)
The language of the script. |
RangeScriptFacetBuilder |
nested(java.lang.String nested)
Sets the nested path the facet will execute on. |
RangeScriptFacetBuilder |
param(java.lang.String name,
java.lang.Object value)
|
RangeScriptFacetBuilder |
scope(java.lang.String scope)
Marks the facet to run in a specific scope. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
RangeScriptFacetBuilder |
valueScript(java.lang.String valueScript)
|
Methods inherited from class org.elasticsearch.search.facet.AbstractFacetBuilder |
---|
addFilterFacetAndGlobal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeScriptFacetBuilder(java.lang.String name)
Method Detail |
---|
public RangeScriptFacetBuilder lang(java.lang.String lang)
public RangeScriptFacetBuilder keyScript(java.lang.String keyScript)
public RangeScriptFacetBuilder valueScript(java.lang.String valueScript)
public RangeScriptFacetBuilder param(java.lang.String name, java.lang.Object value)
public RangeScriptFacetBuilder addRange(double from, double to)
from
- The from range limitto
- The to range limitpublic RangeScriptFacetBuilder addUnboundedTo(double from)
from
- the from range limit, to is unbounded.public RangeScriptFacetBuilder addUnboundedFrom(double to)
to
- the to range limit, from is unbounded.public RangeScriptFacetBuilder global(boolean global)
global
in class AbstractFacetBuilder
public RangeScriptFacetBuilder scope(java.lang.String scope)
scope
in class AbstractFacetBuilder
public RangeScriptFacetBuilder facetFilter(FilterBuilder filter)
facetFilter
in class AbstractFacetBuilder
public RangeScriptFacetBuilder nested(java.lang.String nested)
nested
in class AbstractFacetBuilder
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |