public class SpanSectionTypeQuery extends SpanQuery
Modifier and Type | Field and Description |
---|---|
private SpanQuery |
textQuery
Text query to filter
|
private SpanQuery |
typeQuery
Query on the 'sectionType' field, used to limit text query results
|
Constructor and Description |
---|
SpanSectionTypeQuery(SpanQuery textQuery,
SpanQuery sectionTypeQuery)
Construct a filtered query.
|
Modifier and Type | Method and Description |
---|---|
String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getSectionTypeQuery() |
Spans |
getSpans(IndexReader reader,
Searcher searcher)
Iterate all the spans from the text query that match the sectionType
query also.
|
Collection |
getTerms()
Returns a collection of all terms matched by this query.
|
SpanQuery |
getTextQuery() |
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
createWeight, getSpanRecording, setSpanRecording
private SpanQuery textQuery
private SpanQuery typeQuery
public SpanQuery getTextQuery()
public SpanQuery getSectionTypeQuery()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public Spans getSpans(IndexReader reader, Searcher searcher) throws IOException
public String getField()
SpanQuery
public Collection getTerms()
SpanQuery
public String toString(String field)
toString
in class Query