|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectQuery
SpanQuery
SpanSectionTypeQuery
public class SpanSectionTypeQuery
Supports sectionType filtering of text chunks. Spans from the text query are filtered out if they don't match the sectionType document numbers.
Field Summary | |
---|---|
private SpanQuery |
textQuery
Text query to filter |
private SpanQuery |
typeQuery
Query on the 'sectionType' field, used to limit text query results |
Constructor Summary | |
---|---|
SpanSectionTypeQuery(SpanQuery textQuery,
SpanQuery sectionTypeQuery)
Construct a filtered query. |
Method Summary | |
---|---|
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)
|
Methods inherited from class SpanQuery |
---|
createWeight, getSpanRecording, setSpanRecording |
Methods inherited from class Query |
---|
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private SpanQuery textQuery
private SpanQuery typeQuery
Constructor Detail |
---|
public SpanSectionTypeQuery(SpanQuery textQuery, SpanQuery sectionTypeQuery)
textQuery
- Text query to filtersectionTypeQuery
- 'sectionType' field query to filter withMethod Detail |
---|
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
getSpans
in class SpanQuery
IOException
public String getField()
SpanQuery
getField
in class SpanQuery
public Collection getTerms()
SpanQuery
getTerms
in class SpanQuery
public String toString(String field)
toString
in class Query
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |