com.senseidb.search.client.json.req.query.span
Class SpanNear

java.lang.Object
  extended by com.senseidb.search.client.json.req.query.span.SpanNear
All Implemented Interfaces:
Filter, Query

public class SpanNear
extends Object
implements Query

Matches spans which are near one another. One can specify slop, the maximum number of intervening unmatched positions, as well as whether matches are required to be in-order. The span near query maps to Sensei SpanNearQuery. Here is an example:

The clauses element is a list of one or more other span type queries and the slop controls the maximum number of intervening unmatched positions permitted.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter
Filter.AndOr
 
Constructor Summary
SpanNear(List<SpanTerm> clauses, int slop, boolean inOrder, boolean collectPayloads, double boost)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanNear

public SpanNear(List<SpanTerm> clauses,
                int slop,
                boolean inOrder,
                boolean collectPayloads,
                double boost)


Copyright © 2010-2012. All Rights Reserved.