|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface CompassQueryBuilder.CompassQuerySpanNearBuilder
A span near query builder. 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.
slop defauls to 0 and inOrder
defaults to true.
| Method Summary | |
|---|---|
CompassQueryBuilder.CompassQuerySpanNearBuilder |
add(CompassQuery.CompassSpanQuery query)
Adds a single span query to the next span match. |
CompassQueryBuilder.CompassQuerySpanNearBuilder |
add(Object value)
Adds a single value to the next span match. |
CompassQueryBuilder.CompassQuerySpanNearBuilder |
setInOrder(boolean inOrder)
Sets if the spans need to be in order. |
CompassQueryBuilder.CompassQuerySpanNearBuilder |
setSlop(int slop)
Sets the slop which is the distance allowed between spans. |
CompassQuery.CompassSpanQuery |
toQuery()
Returns the span near generated query. |
| Method Detail |
|---|
CompassQueryBuilder.CompassQuerySpanNearBuilder setSlop(int slop)
CompassQueryBuilder.CompassQuerySpanNearBuilder setInOrder(boolean inOrder)
CompassQueryBuilder.CompassQuerySpanNearBuilder add(Object value)
CompassQueryBuilder.CompassQuerySpanNearBuilder add(CompassQuery.CompassSpanQuery query)
CompassQuery.CompassSpanQuery toQuery()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||