public class MtasSpanPrefixQuery extends MtasSpanQuery
Modifier and Type | Field and Description |
---|---|
private String |
prefix
The prefix.
|
private org.apache.lucene.search.spans.SpanMultiTermQueryWrapper<org.apache.lucene.search.PrefixQuery> |
query
The query.
|
private boolean |
singlePosition
The single position.
|
private org.apache.lucene.index.Term |
term
The term.
|
private String |
value
The value.
|
Constructor and Description |
---|
MtasSpanPrefixQuery(org.apache.lucene.index.Term term)
Instantiates a new mtas span prefix query.
|
MtasSpanPrefixQuery(org.apache.lucene.index.Term term,
boolean singlePosition)
Instantiates a new mtas span prefix query.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.spans.SpanWeight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores,
float boost) |
boolean |
equals(Object obj) |
String |
getField() |
int |
hashCode() |
boolean |
isMatchAllPositionsQuery() |
MtasSpanQuery |
rewrite(org.apache.lucene.index.IndexReader reader) |
String |
toString(String field) |
disableTwoPhaseIterator, getMaximumWidth, getMinimumWidth, getWidth, isSinglePositionQuery, setWidth, twoPhaseIteratorAllowed
private String prefix
private String value
private boolean singlePosition
private org.apache.lucene.index.Term term
private org.apache.lucene.search.spans.SpanMultiTermQueryWrapper<org.apache.lucene.search.PrefixQuery> query
public MtasSpanPrefixQuery(org.apache.lucene.index.Term term)
term
- the termpublic MtasSpanPrefixQuery(org.apache.lucene.index.Term term, boolean singlePosition)
term
- the termsinglePosition
- the single positionpublic MtasSpanQuery rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class MtasSpanQuery
IOException
public String toString(String field)
toString
in class org.apache.lucene.search.Query
public String getField()
getField
in class org.apache.lucene.search.spans.SpanQuery
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 boolean equals(Object obj)
equals
in class MtasSpanQuery
public int hashCode()
hashCode
in class MtasSpanQuery
public boolean isMatchAllPositionsQuery()
isMatchAllPositionsQuery
in class MtasSpanQuery
Copyright © 2018 Meertens Institute. All rights reserved.