public class MtasExtendedSpanTermQuery
extends org.apache.lucene.search.spans.SpanTermQuery
Modifier and Type | Class and Description |
---|---|
class |
MtasExtendedSpanTermQuery.SpanTermWeight
The Class SpanTermWeight.
|
Modifier and Type | Field and Description |
---|---|
private org.apache.lucene.index.Term |
localTerm
The local term.
|
private String |
prefix
The prefix.
|
private boolean |
singlePosition
The single position.
|
private String |
value
The value.
|
Modifier | Constructor and Description |
---|---|
|
MtasExtendedSpanTermQuery(org.apache.lucene.search.spans.SpanTermQuery query,
boolean singlePosition)
Instantiates a new mtas extended span term query.
|
|
MtasExtendedSpanTermQuery(org.apache.lucene.index.Term term)
Instantiates a new mtas extended span term query.
|
private |
MtasExtendedSpanTermQuery(org.apache.lucene.index.Term term,
boolean singlePosition)
Instantiates a new mtas extended span term 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) |
int |
hashCode() |
String |
toString(String field) |
getTermContexts, getTermContexts
private String prefix
private String value
private boolean singlePosition
private org.apache.lucene.index.Term localTerm
public MtasExtendedSpanTermQuery(org.apache.lucene.index.Term term)
term
- the termprivate MtasExtendedSpanTermQuery(org.apache.lucene.index.Term term, boolean singlePosition)
term
- the termsinglePosition
- the single positionpublic MtasExtendedSpanTermQuery(org.apache.lucene.search.spans.SpanTermQuery query, boolean singlePosition)
query
- the querysinglePosition
- the single positionpublic 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.SpanTermQuery
IOException
public String toString(String field)
toString
in class org.apache.lucene.search.spans.SpanTermQuery
public boolean equals(Object obj)
equals
in class org.apache.lucene.search.spans.SpanTermQuery
public int hashCode()
hashCode
in class org.apache.lucene.search.spans.SpanTermQuery
Copyright © 2018 Meertens Institute. All rights reserved.