Module
TermsAggregation
TermsAggregation ( name )
Defines an aggregation of unique values/terms.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | agg(agg) | Add a nesated aggregation. This method can be called multiple times in order to set multiple nested aggregations what will be executed at the same time as the parent aggregation. Alias for the aggregation method. |
Object | aggregation(agg) | Add a nesated aggregation. This method can be called multiple times in order to set multiple nested aggregations what will be executed at the same time as the parent aggregation. |
Object | exclude(exclude,flags) | Allows you to filter out unwanted facet entries using a regular expression. You can also optionally pass in a set of flags to apply to the regular expression. Valid flags are: CASE_INSENSITIVE, MULTILINE, DOTALL, UNICODE_CASE, CANON_EQ, UNIX_LINES, LITERAL, COMMENTS, and UNICODE_CHAR_CLASS. Separate multiple flags with a | character. |
Object | executionHint(h) | Sets the execution hint determines how the aggregation is computed. Supported values are: map and ordinals. |
Object | field(field) | Sets the field to operate on. |
Object | format(f) | Sets the format expression for the terms. Use for number or date formatting |
Object | include(include,flags) | Allows you to allow only specific entries using a regular expression. You can also optionally pass in a set of flags to apply to the regular expression. Valid flags are: CASE_INSENSITIVE, MULTILINE, DOTALL, UNICODE_CASE, CANON_EQ, UNIX_LINES, LITERAL, COMMENTS, and UNICODE_CHAR_CLASS. Separate multiple flags with a | character. |
Object | lang(language) | The script language being used. |
Object | minDocCount(num) | Only return terms that match more than a configured number of hits. |
Object | order(order,direction) | Sets order for the aggregated values. |
Object | params(p) | Sets parameters that will be applied to the script. Overwrites any existing params. |
Object | script(scriptCode) | Allows you generate or modify the terms/values using a script. |
Object | scriptFile(scriptFile) | Allows you generate or modify the terms/values using a script. |
Object | scriptId(scriptId) | Allows you generate or modify the terms/values using a script. |
Object | shardSize(shardSize) | Determines how many terms the coordinating node will request from each shard. |
Object | size(size) | Sets the number of aggregation entries that will be returned. |
String | toJSON() | Retrieves the internal |
Method Detail
agg
Object agg ( agg )
Add a nesated aggregation. This method can be called multiple times
in order to set multiple nested aggregations what will be executed
at the same time as the parent aggregation. Alias for the
aggregation method.
|
aggregation
Object aggregation ( agg )
Add a nesated aggregation. This method can be called multiple times
in order to set multiple nested aggregations what will be executed
at the same time as the parent aggregation.
|
exclude
Object exclude ( exclude, flags )
Allows you to filter out unwanted facet entries using a regular expression. You can also optionally pass in a set of flags to apply to the regular expression. Valid flags are: CASE_INSENSITIVE, MULTILINE, DOTALL, UNICODE_CASE, CANON_EQ, UNIX_LINES, LITERAL, COMMENTS, and UNICODE_CHAR_CLASS. Separate multiple flags with a | character.
|
executionHint
Object executionHint ( h )
Sets the execution hint determines how the aggregation is computed.
Supported values are: map and ordinals.
|
field
Object field ( field )
Sets the field to operate on.
|
format
Object format ( f )
Sets the format expression for the terms. Use for number or date
formatting
|
include
Object include ( include, flags )
Allows you to allow only specific entries using a regular expression. You can also optionally pass in a set of flags to apply to the regular expression. Valid flags are: CASE_INSENSITIVE, MULTILINE, DOTALL, UNICODE_CASE, CANON_EQ, UNIX_LINES, LITERAL, COMMENTS, and UNICODE_CHAR_CLASS. Separate multiple flags with a | character.
|
lang
Object lang ( language )
The script language being used.
|
minDocCount
Object minDocCount ( num )
Only return terms that match more than a configured number of hits.
|
order
Object order ( order, direction )
Sets order for the aggregated values.
|
params
Object params ( p )
Sets parameters that will be applied to the script. Overwrites
any existing params.
|
script
Object script ( scriptCode )
Allows you generate or modify the terms/values using a script.
|
scriptFile
Object scriptFile ( scriptFile )
Allows you generate or modify the terms/values using a script.
|
scriptId
Object scriptId ( scriptId )
Allows you generate or modify the terms/values using a script.
|
shardSize
Object shardSize ( shardSize )
Determines how many terms the coordinating node will request from
each shard.
|
size
Object size ( size )
Sets the number of aggregation entries that will be returned.
|
toJSON
String toJSON ( )
Retrieves the internal
|