public static class SpanNearQuery.Builder extends Object
Constructor and Description |
---|
Builder(String field,
boolean ordered)
Construct a new builder
|
Modifier and Type | Method and Description |
---|---|
SpanNearQuery.Builder |
addClause(SpanQuery clause)
Add a new clause
|
SpanNearQuery.Builder |
addGap(int width)
Add a gap after the previous clause of a defined width
|
SpanNearQuery |
build()
Build the query
|
SpanNearQuery.Builder |
setSlop(int slop)
Set the slop for this query
|
public Builder(String field, boolean ordered)
field
- the field to search inordered
- whether or not clauses must be in-order to matchpublic SpanNearQuery.Builder addClause(SpanQuery clause)
public SpanNearQuery.Builder addGap(int width)
public SpanNearQuery.Builder setSlop(int slop)
public SpanNearQuery build()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.