Module
StatisticalFacet
        StatisticalFacet ( name )
    
    A facet which returns statistical information about a numeric field 
  | 
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 | fields(aFieldName) | Aggregate statistical info across a set of fields. | 
Object | global(trueFalse) | Computes values across the entire index  | 
    
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 | params(oParams) | Allows you to set script parameters to be used during the execution of the script. | 
Object | scope(scope) | Computes values across the the specified scope  | 
    
Object | script(code) | Define a script to evaluate of which the result will be used to generate the statistical information. | 
String | toJSON() | Retrieves the internal   | 
    
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. 
  | 
fields
        Object fields ( aFieldName )
    
    Aggregate statistical info across a set of fields. 
  | 
global
        Object global ( trueFalse )
    
    Computes values across the entire index 
  | 
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. 
  | 
params
        Object params ( oParams )
    
    Allows you to set script parameters to be used during the execution of the script. 
  | 
scope
        Object scope ( scope )
    
    Computes values across the the specified scope 
  | 
script
        Object script ( code )
    
    Define a script to evaluate of which the result will be used to generate
            the statistical information. 
  | 
toJSON
        String toJSON ( )
    
    Retrieves the internal  
  |