## Uses of Class
org.apache.lucene.search.spans.SpanWeight

- Packages that use SpanWeight
  Package | Description
  --- | ---
  org.apache.lucene.search.spans | The calculus of spans.

- - ### Uses of SpanWeight in org.apache.lucene.search.spans

    Subclasses of SpanWeight in org.apache.lucene.search.spans
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SpanContainingQuery.SpanContainingWeight`
    `class` | `org.apache.lucene.search.spans.SpanContainQuery.SpanContainWeight`
    `class` | `SpanNearQuery.SpanNearWeight`
    `class` | `SpanNotQuery.SpanNotWeight`
    `class` | `SpanOrQuery.SpanOrWeight`
    `class` | `SpanPositionCheckQuery.SpanPositionCheckWeight`
    `class` | `SpanTermQuery.SpanTermWeight`
    `class` | `SpanWithinQuery.SpanWithinWeight`

    Methods in org.apache.lucene.search.spans that return SpanWeight
    Modifier and Type | Method and Description
    --- | ---
    `SpanWeight` | SpanOrQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanNearQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanPositionCheckQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanWithinQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `abstract SpanWeight` | SpanQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanBoostQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | FieldMaskingSpanQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanMultiTermQueryWrapper.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanContainingQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanTermQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`
    `SpanWeight` | SpanNotQuery.`createWeight(IndexSearcher searcher, boolean needsScores, float boost)`

    Methods in org.apache.lucene.search.spans with parameters of type SpanWeight
    Modifier and Type | Method and Description
    --- | ---
    `static Map<Term,TermContext>` | SpanQuery.`getTermContexts(SpanWeight... weights)` Build a map of terms to termcontexts, for use in constructing SpanWeights

    Method parameters in org.apache.lucene.search.spans with type arguments of type SpanWeight
    Modifier and Type | Method and Description
    --- | ---
    `static Map<Term,TermContext>` | SpanQuery.`getTermContexts(Collection<SpanWeight> weights)` Build a map of terms to termcontexts, for use in constructing SpanWeights

    Constructors in org.apache.lucene.search.spans with parameters of type SpanWeight
    Constructor and Description
    `SpanContainingWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)`
    `SpanNotWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight includeWeight, SpanWeight excludeWeight, float boost)`
    `SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term,TermContext> terms, float boost)`
    `SpanScorer(SpanWeight weight, Spans spans, Similarity.SimScorer docScorer)` Sole constructor.
    `SpanWithinWeight(IndexSearcher searcher, Map<Term,TermContext> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)`

    Constructor parameters in org.apache.lucene.search.spans with type arguments of type SpanWeight
    Constructor and Description
    `SpanNearWeight(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term,TermContext> terms, float boost)`
    `SpanOrWeight(IndexSearcher searcher, Map<Term,TermContext> terms, List<SpanWeight> subWeights, float boost)`

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