ejsSpanFirstQuery

Matches spans near the beginning of a field. The spanFirstQuery allows you to search for Spans that start and end within the first n positions of the document. The span first query maps to Lucene SpanFirstQuery.

Module

 SpanFirstQuery

SpanFirstQuery ( spanQry, end )
Matches spans near the beginning of a field.

Parameters
spanQry <Query> A valid SpanQuery
end <Integer> the maximum end position in a match.

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.
Objectend(position)Sets the maximum end position permitted in a match.
Objectmatch(spanQuery)Sets the span query to match on.
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.

 end

Object end ( position )
Sets the maximum end position permitted in a match.

Parameters
position <Number> The maximum position length to consider.
Returns
returns this so that calls can be chained.

 match

Object match ( spanQuery )
Sets the span query to match on.

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