Package org.elasticsearch.index.query
Class DateRangeIncludingNowQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.index.query.DateRangeIncludingNowQuery
public class DateRangeIncludingNowQuery
extends org.apache.lucene.search.Query
A simple wrapper class that indicates that the wrapped query has made use of NOW
when parsing its datemath. Useful for preprocessors such as the percolator that
need to know when not to extract dates from the query.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, sameClassAs, toString
-
Constructor Details
-
DateRangeIncludingNowQuery
public DateRangeIncludingNowQuery(org.apache.lucene.search.Query in)
-
-
Method Details
-
getQuery
public org.apache.lucene.search.Query getQuery() -
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException- Overrides:
rewrite
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)- Overrides:
visit
in classorg.apache.lucene.search.Query
-
equals
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-