org.modeshape.jcr.query.lucene

## Class MatchNoneQuery

- java.lang.Object
- - org.apache.lucene.search.Query
  - - org.modeshape.jcr.query.lucene.MatchNoneQuery

- All Implemented Interfaces:
    Serializable, Cloneable

      @Immutable
      public class MatchNoneQuery
      extends org.apache.lucene.search.Query

  A Lucene `Query` implementation that always matches no documents.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected static class` | `MatchNoneQuery.NoneScorer` A scorer for the NOT query that iterates over documents (in increasing docId order), using the given scorer implementation for the operand of the NOT.
    `protected class` | `MatchNoneQuery.NoneWeight` Calculates query weights and builds query scores for our NOT queries.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MatchNoneQuery()` Construct a query that always returns no documents.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `clone()`
    `org.apache.lucene.search.Weight` | `createWeight(org.apache.lucene.search.Searcher searcher)`
    `String` | `toString(String field)`

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

      `combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, weight`

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

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

- - ### Constructor Detail

    - #### MatchNoneQuery

          public MatchNoneQuery()

      Construct a query that always returns no documents.

  - ### Method Detail

    - #### createWeight

          public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)

      Overrides:
        `createWeight` in class `org.apache.lucene.search.Query`
      See Also:
        `Query.createWeight(org.apache.lucene.search.Searcher)`

    - #### clone

          public Object clone()

      Overrides:
        `clone` in class `org.apache.lucene.search.Query`
      See Also:
        `Query.clone()`

    - #### toString

          public String toString(String field)

      Specified by:
        `toString` in class `org.apache.lucene.search.Query`
      See Also:
        `Query.toString(java.lang.String)`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.