java.lang.Object
org.apache.lucene.search.PhrasePositions
Position of a term in a document that takes into account the term offset within the phrase.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) PhrasePositions(package private) int(package private) final int(package private) int(package private) final PostingsEnum(package private) int(package private) int(package private) final Term[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final void(package private) final booleanGo to next location of this term current document, and setpositionaslocation - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the sameposition.toString()for debug purposes
-
Field Details
-
position
int position -
count
int count -
offset
int offset -
ord
final int ord -
postings
-
next
PhrasePositions next -
rptGroup
int rptGroup -
rptInd
int rptInd -
terms
-
-
Constructor Details
-
PhrasePositions
PhrasePositions(PostingsEnum postings, int o, int ord, Term[] terms)
-
-
Method Details
-
firstPosition
- Throws:
IOException
-
nextPosition
Go to next location of this term current document, and setpositionaslocation - offset, so that a matching exact phrase is easily identified when all PhrasePositions have exactly the sameposition.- Throws:
IOException
-
toString
for debug purposes
-