Module
HistogramFacet
HistogramFacet ( name )
A facet which returns the N most frequent terms within a collection or set of collections.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | cacheFilter(trueFalse) | Enables caching of the |
Object | facetFilter(oFilter) | Allows you to reduce the documents used for computing facet results. |
Object | field(fieldName) | Sets the field to be used to construct the this facet. |
Object | from(from) | Sets the "from", "start", or lower bounds bucket. For example if you have a value of 1023, an interval of 100, and a from value of 1500, it will be placed into the 1500 bucket vs. the normal bucket of 1000. |
Object | global(trueFalse) | Computes values across the entire index |
Object | interval(numericInterval) | Sets the bucket interval used to calculate the distribution. |
Object | keyField(fieldName) | Allows you to specify a different key field to be used to group intervals. |
Object | keyScript(scriptCode) | Allows you modify the key field using a script. The modified value
is then used to generate the interval. |
Object | lang(language) | The script language being used. Currently supported values are
javascript , groovy , and mvel . |
Object | mode(m) | Sets the mode the facet will use.
|
Object | nested(path) | Sets the path to the nested document if faceting against a nested field. |
Object | order(o) | Sets the type of ordering that will be performed on the date buckets. Valid values are: key - the default, sort by the bucket's key value count - sort by the number of items in the bucket total - sort by the sum/total of the items in the bucket |
Object | params(p) | Sets parameters that will be applied to the script. Overwrites any existing params. |
Object | scope(scope) | Computes values across the the specified scope |
Object | timeInterval(timeInterval) | Sets the bucket interval used to calculate the distribution based on a time value such as "1d", "1w", etc. |
Object | to(to) | Sets the "to", "end", or upper bounds bucket. For example if you have a value of 1023, an interval of 100, and a to value of 900, it will be placed into the 900 bucket vs. the normal bucket of 1000. |
String | toJSON() | Retrieves the internal |
Object | valueField(fieldName) | Allows you to specify a different value field to aggrerate over. |
Object | valueScript(scriptCode) | Allows you modify the value field using a script. The modified value
is then used to compute the statistical data. |
Method Detail
cacheFilter
Object cacheFilter ( trueFalse )
Enables caching of the
|
facetFilter
Object facetFilter ( oFilter )
Allows you to reduce the documents used for computing facet results.
|
field
Object field ( fieldName )
Sets the field to be used to construct the this facet.
|
from
Object from ( from )
Sets the "from", "start", or lower bounds bucket. For example if
you have a value of 1023, an interval of 100, and a from value of
1500, it will be placed into the 1500 bucket vs. the normal bucket
of 1000.
|
global
Object global ( trueFalse )
Computes values across the entire index
|
interval
Object interval ( numericInterval )
Sets the bucket interval used to calculate the distribution.
|
keyField
Object keyField ( fieldName )
Allows you to specify a different key field to be used to group intervals.
|
keyScript
Object keyScript ( scriptCode )
Allows you modify the key field using a script. The modified value
is then used to generate the interval.
|
lang
Object lang ( language )
The script language being used. Currently supported values are
javascript , groovy , and mvel .
|
mode
Object mode ( m )
Sets the mode the facet will use.
|
nested
Object nested ( path )
Sets the path to the nested document if faceting against a nested field.
|
order
Object order ( o )
Sets the type of ordering that will be performed on the date
buckets. Valid values are:
key - the default, sort by the bucket's key value
count - sort by the number of items in the bucket
total - sort by the sum/total of the items in the bucket
|
params
Object params ( p )
Sets parameters that will be applied to the script. Overwrites
any existing params.
|
scope
Object scope ( scope )
Computes values across the the specified scope
|
timeInterval
Object timeInterval ( timeInterval )
Sets the bucket interval used to calculate the distribution based
on a time value such as "1d", "1w", etc.
|
to
Object to ( to )
Sets the "to", "end", or upper bounds bucket. For example if
you have a value of 1023, an interval of 100, and a to value of
900, it will be placed into the 900 bucket vs. the normal bucket
of 1000.
|
toJSON
String toJSON ( )
Retrieves the internal
|
valueField
Object valueField ( fieldName )
Allows you to specify a different value field to aggrerate over.
|
valueScript
Object valueScript ( scriptCode )
Allows you modify the value field using a script. The modified value
is then used to compute the statistical data.
|