public class TermQuery
extends org.apache.lucene.search.Query
BooleanQuery.| Constructor and Description |
|---|
TermQuery(org.apache.lucene.index.Term t)
Constructs a query for the term
t. |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher) |
boolean |
equals(Object o)
Returns true iff
o is equal to this. |
void |
extractTerms(Set terms) |
org.apache.lucene.index.Term |
getTerm()
Returns the term of this query.
|
int |
hashCode()
Returns a hash code value for this object.
|
String |
toString(String field)
Prints a user-readable version of this query.
|
public TermQuery(org.apache.lucene.index.Term t)
t.public org.apache.lucene.index.Term getTerm()
protected org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
throws IOException
createWeight in class org.apache.lucene.search.QueryIOExceptionpublic void extractTerms(Set terms)
extractTerms in class org.apache.lucene.search.Querypublic String toString(String field)
toString in class org.apache.lucene.search.Querypublic boolean equals(Object o)
o is equal to this.Copyright © 2005–2018 Alfresco Software. All rights reserved.