|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectQuery
SpanQuery
SpanExactQuery
public class SpanExactQuery
Just like a SpanNearQuery with slop set to zero, except that it also looks for the special 'start-of-field' and 'end-of-field' tokens inserted by the text indexer. Thus, it will match either the entire field, or none of it.
| Field Summary | |
|---|---|
private SpanQuery[] |
clauses
|
| Constructor Summary | |
|---|---|
SpanExactQuery(SpanQuery[] clauses)
Construct an exact query on a set of clauses. |
|
| Method Summary | |
|---|---|
SpanQuery[] |
getClauses()
Return the clauses whose spans are matched. |
String |
getField()
Returns the name of the field matched by this query. |
Spans |
getSpans(IndexReader reader,
Searcher searcher)
Iterate all the spans from the text query that match the sectionType query also. |
Query[] |
getSubQueries()
Return all the sub-queries (clauses in our case) |
Collection |
getTerms()
Returns a collection of all terms matched by this query. |
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[] clauses
| Constructor Detail |
|---|
public SpanExactQuery(SpanQuery[] clauses)
clauses - Clauses to match.| Method Detail |
|---|
public Query rewrite(IndexReader reader)
throws IOException
rewrite in class QueryIOExceptionpublic SpanQuery[] getClauses()
public Query[] getSubQueries()
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 | ||||||||