Module
CommonTermsQuery
CommonTermsQuery ( field, qstr )
A query that executes high-frequency terms in a optional sub-query.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | analyzer(analyzer) | Sets the analyzer name used to analyze the Query object. |
Object | boost(boost) | Sets the boost value for documents commoning the Query . |
Object | cutoffFrequency(freq) | Sets the maximum threshold/frequency to be considered a low frequency term. Set to a value between 0 and 1. |
Object | disableCoord(trueFalse) | Enables or disables similarity coordinate scoring of documents
commoning the Query . Default: false. |
Object | field(f) | Sets the field to query against. |
Object | highFreqOperator(op) | Sets the boolean operator to be used for high frequency terms. Default: AND |
Object | lowFreqOperator(op) | Sets the boolean operator to be used for low frequency terms. Default: AND |
Object | minimumShouldMatchHighFreq(min) | Sets the minimum number of high freq matches that need to match in a document before that document is returned in the results. |
Object | minimumShouldMatchLowFreq(min) | Sets the minimum number of low freq matches that need to match in a document before that document is returned in the results. |
Object | query(qstr) | Sets the query string. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Method Detail
analyzer
Object analyzer ( analyzer )
Sets the analyzer name used to analyze the Query object.
|
boost
Object boost ( boost )
Sets the boost value for documents commoning the Query .
|
cutoffFrequency
Object cutoffFrequency ( freq )
Sets the maximum threshold/frequency to be considered a low
frequency term. Set to a value between 0 and 1.
|
disableCoord
Object disableCoord ( trueFalse )
Enables or disables similarity coordinate scoring of documents
commoning the Query . Default: false.
|
field
Object field ( f )
Sets the field to query against.
|
highFreqOperator
Object highFreqOperator ( op )
Sets the boolean operator to be used for high frequency terms.
Default: AND
|
lowFreqOperator
Object lowFreqOperator ( op )
Sets the boolean operator to be used for low frequency terms.
Default: AND
|
minimumShouldMatchHighFreq
Object minimumShouldMatchHighFreq ( min )
Sets the minimum number of high freq matches that need to match in
a document before that document is returned in the results.
|
minimumShouldMatchLowFreq
Object minimumShouldMatchLowFreq ( min )
Sets the minimum number of low freq matches that need to match in
a document before that document is returned in the results.
|
query
Object query ( qstr )
Sets the query string.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|