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

    Constructors
    Constructor
    Description
    DateRangeIncludingNowQuery(org.apache.lucene.search.Query in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.apache.lucene.search.Query
     
    int
     
    org.apache.lucene.search.Query
    rewrite(org.apache.lucene.index.IndexReader reader)
     
     
    void
    visit(org.apache.lucene.search.QueryVisitor visitor)
     

    Methods inherited from class org.apache.lucene.search.Query

    classHash, createWeight, sameClassAs, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 class org.apache.lucene.search.Query
      Throws:
      IOException
    • toString

      public String toString(String field)
      Specified by:
      toString in class org.apache.lucene.search.Query
    • visit

      public void visit(org.apache.lucene.search.QueryVisitor visitor)
      Overrides:
      visit in class org.apache.lucene.search.Query
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class org.apache.lucene.search.Query
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.Query