## 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` | SpanMultiTermQueryWrapper.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanContainingQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanOrQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `abstract SpanWeight` | SpanQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | FieldMaskingSpanQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanTermQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanWithinQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanBoostQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanNearQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanNotQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`
    `SpanWeight` | SpanPositionCheckQuery.`createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)`

    Methods in org.apache.lucene.search.spans with parameters of type SpanWeight
    Modifier and Type | Method and Description
    --- | ---
    `static Map<Term,TermStates>` | SpanQuery.`getTermStates(SpanWeight... weights)` Build a map of terms to `TermStates`, 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,TermStates>` | SpanQuery.`getTermStates(Collection<SpanWeight> weights)` Build a map of terms to `TermStates`, 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,TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost)`
    `SpanNotWeight(IndexSearcher searcher, Map<Term,TermStates> terms, SpanWeight includeWeight, SpanWeight excludeWeight, float boost)`
    `SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term,TermStates> terms, float boost)`
    `SpanScorer(SpanWeight weight, Spans spans, LeafSimScorer docScorer)` Sole constructor.
    `SpanWithinWeight(IndexSearcher searcher, Map<Term,TermStates> 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,TermStates> terms, float boost)`
    `SpanOrWeight(IndexSearcher searcher, Map<Term,TermStates> terms, List<SpanWeight> subWeights, float boost)`

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