Class TermsQuery
- java.lang.Object
 - 
- org.apache.lucene.search.Query
 - 
- org.apache.lucene.search.MultiTermQuery
 - 
- com.atlassian.confluence.impl.search.v2.lucene.TermsQuery
 
 
 
 
- 
- All Implemented Interfaces:
 Cloneable
public class TermsQuery extends org.apache.lucene.search.MultiTermQueryA copy fromorg.apache.lucene.search.join.JoinUtil.TermsQuery. Note that the defaultrewritemethod ofMultiTermQuerydoesn't calculate score which means it acts merely as a filter.- Since:
 - 7.17
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.apache.lucene.search.MultiTermQuery
org.apache.lucene.search.MultiTermQuery.ConstantScoreAutoRewrite, org.apache.lucene.search.MultiTermQuery.RewriteMethod, org.apache.lucene.search.MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite, org.apache.lucene.search.MultiTermQuery.TopTermsScoringBooleanQueryRewrite 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TermsQuery(String field, Collection<String> terms)TermsQuery(String field, org.apache.lucene.util.BytesRefHash terms) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected org.apache.lucene.index.TermsEnumgetTermsEnum(org.apache.lucene.index.Terms terms, org.apache.lucene.util.AttributeSource atts)inthashCode()StringtoString(String string)- 
Methods inherited from class org.apache.lucene.search.MultiTermQuery
getField, getRewriteMethod, getTermsEnum, rewrite, setRewriteMethod 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
TermsQuery
public TermsQuery(String field, org.apache.lucene.util.BytesRefHash terms)
- Parameters:
 field- The field that should contain terms that are specified in the previous parameterterms- The terms that matching documents should have. The terms must be sorted by natural order.
 
- 
TermsQuery
public TermsQuery(String field, Collection<String> terms)
 
 - 
 
- 
Method Detail
- 
getTermsEnum
protected org.apache.lucene.index.TermsEnum getTermsEnum(org.apache.lucene.index.Terms terms, org.apache.lucene.util.AttributeSource atts) throws IOException- Specified by:
 getTermsEnumin classorg.apache.lucene.search.MultiTermQuery- Throws:
 IOException
 
- 
toString
public String toString(String string)
- Specified by:
 toStringin classorg.apache.lucene.search.Query
 
- 
equals
public boolean equals(Object o)
- Overrides:
 equalsin classorg.apache.lucene.search.MultiTermQuery
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classorg.apache.lucene.search.MultiTermQuery
 
 - 
 
 -