Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.search.lucene.query
Class ScoreQuery.NotWeight

    java.lang.Object
      org.apache.lucene.search.Weight
          org.modeshape.search.lucene.query.ScoreQuery.NotWeight

All Implemented Interfaces:
  Serializable

Enclosing class:
  ScoreQuery

    protected class ScoreQuery.NotWeight

extends org.apache.lucene.search.Weight

Calculates query weights and builds query scores for our NOT queries.

See Also:
  Serialized Form

Constructor Summary
`protected` | `ScoreQuery.NotWeight(org.apache.lucene.search.Searcher searcher)`

Method Summary
`org.apache.lucene.search.Explanation` | `explain(org.apache.lucene.index.IndexReader reader, int doc)`
`org.apache.lucene.search.Query` | `getQuery()`
`float` | `getValue()` This implementation always returns a weight factor of 1.0.
`void` | `normalize(float norm)` This implementation always does nothing, as there is nothing to normalize.
`org.apache.lucene.search.Scorer` | `scorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)`
`float` | `sumOfSquaredWeights()` This implementation always returns a normalization factor of 1.0.

Methods inherited from class org.apache.lucene.search.Weight
`scoresDocsOutOfOrder`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ScoreQuery.NotWeight

    protected ScoreQuery.NotWeight(org.apache.lucene.search.Searcher searcher)

Method Detail

### getQuery

    public org.apache.lucene.search.Query getQuery()

  Specified by:
    `getQuery` in class `org.apache.lucene.search.Weight`
  See Also:
    `Weight.getQuery()`

### getValue

    public float getValue()

  This implementation always returns a weight factor of 1.0.

  Specified by:
    `getValue` in class `org.apache.lucene.search.Weight`
  See Also:
    `Weight.getValue()`

### sumOfSquaredWeights

    public float sumOfSquaredWeights()

  This implementation always returns a normalization factor of 1.0.

  Specified by:
    `sumOfSquaredWeights` in class `org.apache.lucene.search.Weight`
  See Also:
    `Weight.sumOfSquaredWeights()`

### normalize

    public void normalize(float norm)

  This implementation always does nothing, as there is nothing to normalize.

  Specified by:
    `normalize` in class `org.apache.lucene.search.Weight`
  See Also:
    `Weight.normalize(float)`

### scorer

    public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader,
                                                  boolean scoreDocsInOrder,
                                                  boolean topScorer)
                                           throws IOException

  Specified by:
    `scorer` in class `org.apache.lucene.search.Weight`
  Throws:
    `IOException`
  See Also:
    `Weight.scorer(org.apache.lucene.index.IndexReader, boolean, boolean)`

### explain

    public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader,
                                                        int doc)
                                                 throws IOException

  Specified by:
    `explain` in class `org.apache.lucene.search.Weight`
  Throws:
    `IOException`
  See Also:
    `Weight.explain(org.apache.lucene.index.IndexReader, int)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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