public class MtasCQLParserWordPositionQuery extends MtasSpanQuery
Modifier and Type | Field and Description |
---|---|
(package private) MtasSpanQuery |
query
The query.
|
(package private) org.apache.lucene.index.Term |
term
The term.
|
Constructor and Description |
---|
MtasCQLParserWordPositionQuery(String field,
int position)
Instantiates a new mtas CQL parser word position query.
|
MtasCQLParserWordPositionQuery(String field,
int start,
int end)
Instantiates a new mtas CQL parser word position query.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.spans.SpanWeight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores,
float boost) |
void |
disableTwoPhaseIterator()
Disable two phase iterator.
|
boolean |
equals(Object obj) |
String |
getField() |
int |
hashCode() |
boolean |
isMatchAllPositionsQuery() |
MtasSpanQuery |
rewrite(org.apache.lucene.index.IndexReader reader) |
String |
toString(String field) |
getMaximumWidth, getMinimumWidth, getWidth, isSinglePositionQuery, setWidth, twoPhaseIteratorAllowed
MtasSpanQuery query
org.apache.lucene.index.Term term
public MtasCQLParserWordPositionQuery(String field, int position)
field
- the fieldposition
- the positionpublic MtasCQLParserWordPositionQuery(String field, int start, int end)
field
- the fieldstart
- the startend
- the endpublic String getField()
getField
in class org.apache.lucene.search.spans.SpanQuery
public MtasSpanQuery rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class MtasSpanQuery
IOException
public org.apache.lucene.search.spans.SpanWeight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores, float boost) throws IOException
createWeight
in class org.apache.lucene.search.spans.SpanQuery
IOException
public String toString(String field)
toString
in class org.apache.lucene.search.Query
public boolean equals(Object obj)
equals
in class MtasSpanQuery
public int hashCode()
hashCode
in class MtasSpanQuery
public void disableTwoPhaseIterator()
MtasSpanQuery
disableTwoPhaseIterator
in class MtasSpanQuery
public boolean isMatchAllPositionsQuery()
isMatchAllPositionsQuery
in class MtasSpanQuery
Copyright © 2018 Meertens Institute. All rights reserved.