org.apache.lucene.search

## Class DocTermOrdsRewriteMethod

- java.lang.Object
- - org.apache.lucene.search.MultiTermQuery.RewriteMethod
  - - org.apache.lucene.search.DocTermOrdsRewriteMethod

- Deprecated.
  Use `DocValuesRewriteMethod` instead.

      @Deprecated
      public final class DocTermOrdsRewriteMethod
      extends MultiTermQuery.RewriteMethod

  Rewrites MultiTermQueries into a filter, using DocTermOrds for term enumeration.

  This can be used to perform these queries against an unindexed docvalues field.

  WARNING: This API is experimental and might change in incompatible ways in the next release.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DocTermOrdsRewriteMethod()` Deprecated.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)` Deprecated.
    `int` | `hashCode()` Deprecated.
    `Query` | `rewrite(IndexReader reader, MultiTermQuery query)` Deprecated.

    - ### Methods inherited from class org.apache.lucene.search.MultiTermQuery.RewriteMethod

      `getTermsEnum`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DocTermOrdsRewriteMethod

          public DocTermOrdsRewriteMethod()

      Deprecated.

  - ### Method Detail

    - #### rewrite

          public Query rewrite(IndexReader reader,
                      MultiTermQuery query)

      Deprecated.
      Specified by:
        `rewrite` in class `MultiTermQuery.RewriteMethod`

    - #### equals

          public boolean equals(Object obj)

      Deprecated.
      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Deprecated.
      Overrides:
        `hashCode` in class `Object`

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.