Module
TermsQuery
TermsQuery ( field, terms )
A Query that matches documents containing provided terms.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | boost(boost) | Sets the boost value for documents matching the Query . |
Object | disableCoord(trueFalse) | Enables or disables similarity coordinate scoring of documents
matching the Query . Default: false. |
Object | field(f) | Sets the fields to query against. |
Object | minimumShouldMatch(minMatch) | Sets the minimum number of terms that need to match in a document before that document is returned in the results. |
Object | terms(t) | Sets the terms. If you t is a String, it is added to the existing list of terms. If t is an array, the list of terms replaces the existing terms. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Method Detail
boost
Object boost ( boost )
Sets the boost value for documents matching the Query .
|
disableCoord
Object disableCoord ( trueFalse )
Enables or disables similarity coordinate scoring of documents
matching the Query . Default: false.
|
field
Object field ( f )
Sets the fields to query against.
|
minimumShouldMatch
Object minimumShouldMatch ( minMatch )
Sets the minimum number of terms that need to match in a document
before that document is returned in the results.
|
terms
Object terms ( t )
Sets the terms. If you t is a String, it is added to the existing
list of terms. If t is an array, the list of terms replaces the
existing terms.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|