|
|||||||||
| 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 with| Method Detail |
|---|
public SpanQuery getTextQuery()
public SpanQuery getSectionTypeQuery()
public Query rewrite(IndexReader reader)
throws IOException
rewrite in class QueryIOException
public Spans getSpans(IndexReader reader,
Searcher searcher)
throws IOException
getSpans in class SpanQueryIOExceptionpublic String getField()
SpanQuery
getField in class SpanQuerypublic Collection getTerms()
SpanQuery
getTerms in class SpanQuerypublic String toString(String field)
toString in class Query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||