org.apache.lucene.queries

## Class TermFilter

- java.lang.Object
- - org.apache.lucene.search.Query
  - - org.apache.lucene.search.Filter
    - - org.apache.lucene.search.QueryWrapperFilter
      - - org.apache.lucene.queries.TermFilter

- All Implemented Interfaces:
    Cloneable

  Deprecated.
  Use QueryWrapperFilter(TermQuery) instead.

      @Deprecated
      public class TermFilter
      extends QueryWrapperFilter

  A filter that includes documents that match with a specific term.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TermFilter(Term term)` Deprecated. Create a new TermFilter

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString(String field)` Deprecated.

    - ### Methods inherited from class org.apache.lucene.search.QueryWrapperFilter

      `equals, getDocIdSet, getQuery, hashCode, rewrite`

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

      `clone, createWeight, getBoost, setBoost, toString`

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

      `finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TermFilter

          public TermFilter(Term term)

      Deprecated.
      Create a new TermFilter
      Parameters:
        `term` - The term documents need to have in order to be a match for this filter.

  - ### Method Detail

    - #### toString

          public String toString(String field)

      Deprecated.
      Overrides:
        `toString` in class `QueryWrapperFilter`

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