Package org.elasticsearch.index.mapper
Class TypeFieldMapper.TypesQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.elasticsearch.index.mapper.TypeFieldMapper.TypesQuery
-
- Enclosing class:
- TypeFieldMapper
public static class TypeFieldMapper.TypesQuery extends Query
Specialization for a disjunction over many _type
-
-
Constructor Summary
Constructors Constructor Description TypesQuery(BytesRef... types)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Override and implement query instance equivalence properly in a subclass.BytesRef[]getTerms()inthashCode()Override and implement query hash code properly in a subclass.Queryrewrite(IndexReader reader)Expert: called to re-write queries into primitive queries.StringtoString(String field)Prints a query to a string, withfieldassumed to be the default field and omitted.-
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, sameClassAs, toString, visit
-
-
-
-
Constructor Detail
-
TypesQuery
public TypesQuery(BytesRef... types)
-
-
Method Detail
-
getTerms
public BytesRef[] getTerms()
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
Description copied from class:QueryExpert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.- Overrides:
rewritein classQuery- Throws:
IOException
-
equals
public boolean equals(Object obj)
Description copied from class:QueryOverride and implement query instance equivalence properly in a subclass. This is required so thatQueryCacheworks properly. Typically a query will be equal to another only if it's an instance of the same class and its document-filtering properties are identical that other instance. Utility methods are provided for certain repetitive code.- Specified by:
equalsin classQuery- See Also:
Query.sameClassAs(Object),Query.classHash()
-
hashCode
public int hashCode()
Description copied from class:QueryOverride and implement query hash code properly in a subclass. This is required so thatQueryCacheworks properly.- Specified by:
hashCodein classQuery- See Also:
Query.equals(Object)
-
-