Module
PartialField
PartialField ( fieldName )
Control what part of the _source will be loaded.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | exclude(exclude) | Allows to control how the _source field is returned with every hit. By default operations return the contents of the _source field unless you have used the fields parameter or if the _source field is disabled. Set the includes parameter to false to completely disable returning the source field. |
Object | include(include) | Allows to control how the _source field is returned with every hit. By default operations return the contents of the _source field unless you have used the fields parameter or if the _source field is disabled. Set the includes parameter to false to completely disable returning the source field. |
String | toJSON() | Retrieves the internal script object. This is typically used by
internal API functions so use with caution. |
Method Detail
exclude
Object exclude ( exclude )
Allows to control how the _source field is returned with every hit.
By default operations return the contents of the _source field
unless you have used the fields parameter or if the _source field
is disabled. Set the includes parameter to false to completely
disable returning the source field.
|
include
Object include ( include )
Allows to control how the _source field is returned with every hit.
By default operations return the contents of the _source field
unless you have used the fields parameter or if the _source field
is disabled. Set the includes parameter to false to completely
disable returning the source field.
|
toJSON
String toJSON ( )
Retrieves the internal script object. This is typically used by
internal API functions so use with caution.
|