Package org.apache.lucene.search.spans
Class SpanPositionRangeQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.spans.SpanQuery
org.apache.lucene.search.spans.SpanPositionCheckQuery
org.apache.lucene.search.spans.SpanPositionRangeQuery
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- SpanFirstQuery
Checks to see if the 
SpanPositionCheckQuery.getMatch() lies between a start and end position- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.lucene.search.spans.SpanPositionCheckQuerySpanPositionCheckQuery.AcceptStatus, SpanPositionCheckQuery.PositionCheckSpan
- 
Field SummaryFieldsFields inherited from class org.apache.lucene.search.spans.SpanPositionCheckQuerymatch
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected SpanPositionCheckQuery.AcceptStatusacceptPosition(Spans spans) Implementing classes are required to return whether the current position is a match for the passed in "match"SpanQuery.clone()Returns a clone of this query.booleanintgetEnd()intgetStart()inthashCode()Prints a query to a string, withfieldassumed to be the default field and omitted.Methods inherited from class org.apache.lucene.search.spans.SpanPositionCheckQueryextractTerms, getField, getMatch, getSpans, rewriteMethods inherited from class org.apache.lucene.search.spans.SpanQuerycreateWeight
- 
Field Details- 
startprotected int start
- 
endprotected int end
 
- 
- 
Constructor Details- 
SpanPositionRangeQuery
 
- 
- 
Method Details- 
acceptPositionDescription copied from class:SpanPositionCheckQueryImplementing classes are required to return whether the current position is a match for the passed in "match"SpanQuery. This is only called if the underlyingSpans.next()for the match is successful- Specified by:
- acceptPositionin class- SpanPositionCheckQuery
- Parameters:
- spans- The- Spansinstance, positioned at the spot to check
- Returns:
- whether the match is accepted, rejected, or rejected and should move to the next doc.
- Throws:
- IOException
- See Also:
 
- 
getStartpublic int getStart()- Returns:
- The minimum position permitted in a match
 
- 
getEndpublic int getEnd()- Returns:
- the maximum end position permitted in a match.
 
- 
toStringDescription copied from class:QueryPrints a query to a string, withfieldassumed to be the default field and omitted.
- 
cloneDescription copied from class:QueryReturns a clone of this query.
- 
equals
- 
hashCodepublic int hashCode()
 
-