ejsSpanNotQuery

Removes matches which overlap with another span query. The span not query maps to Lucene SpanNotQuery.

Module

 SpanNotQuery

SpanNotQuery ( includeQry, excludeQry )
Removes matches which overlap with another span query.

Parameters
includeQry <Query> a valid SpanQuery whose matching docs will be returned.
excludeQry <Query> a valid SpanQuery whose matching docs will not be returned

Method Summary

Returns Name Description
String_type()The type of ejs object. For internal use only.
Objectboost(boost)Sets the boost value for documents matching the Query.
Objectexclude(spanQuery)Sets the span query whose matches must not overlap those returned.
Objectinclude(spanQuery)Set the span query whose matches are filtered.
StringtoJSON()Retrieves the internal query object. This is typically used by internal API functions so use with caution.

Method Detail

 _type

String _type ( )
The type of ejs object. For internal use only.

Returns
the type of object

 boost

Object boost ( boost )
Sets the boost value for documents matching the Query.

Parameters
boost <Double> A positive double value.
Returns
returns this so that calls can be chained.

 exclude

Object exclude ( spanQuery )
Sets the span query whose matches must not overlap those returned.

Parameters
spanQuery <Object> Any valid span type query.
Returns
returns this so that calls can be chained.

 include

Object include ( spanQuery )
Set the span query whose matches are filtered.

Parameters
spanQuery <Object> Any valid span type query.
Returns
returns this so that calls can be chained.

 toJSON

String toJSON ( )
Retrieves the internal query object. This is typically used by internal API functions so use with caution.

Returns
returns this object's internal query property.

Request

Queries

Filters

Aggregations

Facets

Suggesters

Geo