Package com.atlassian.jira.search.query
Interface SpanNearQuery
- All Superinterfaces:
Query
- All Known Implementing Classes:
DefaultSpanNearQuery
A span near query
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptionfield()Returns the name of the field to search.booleaninOrder()Indicates whether the matching values must appear in the specified order.intslop()Returns the maximum number of intervening unmatched positions (slop) allowed between matching values.values()Returns the list of values to search for within the field.
-
Method Details
-
field
String field()Returns the name of the field to search.- Returns:
- the field name, never
nullor empty
-
values
Returns the list of values to search for within the field.- Returns:
- a non-empty list of non-null, non-empty values
-
slop
int slop()Returns the maximum number of intervening unmatched positions (slop) allowed between matching values.Sensible values are non-negative integers, typically between 0 (exact adjacency) and 100. Excessively large slop values may impact performance and relevance.
- Returns:
- the slop value, must be
>= 0
-
inOrder
boolean inOrder()Indicates whether the matching values must appear in the specified order.- Returns:
trueif values must appear in order,falseotherwise
-