## Uses of Class
org.apache.lucene.search.Similarity

Packages that use Similarity
org.apache.lucene.index: Code to maintain and access indices.
org.apache.lucene.misc
org.apache.lucene.search: Code to search indices.
org.apache.lucene.search.payloads: The payloads package provides Query mechanisms for finding and using payloads.
org.apache.lucene.search.similar: Document similarity query generators.
org.apache.lucene.search.spans: The calculus of spans.
org.apache.lucene.store.instantiated: InstantiatedIndex, alternative RAM store for small corpora.

Uses of Similarity in org.apache.lucene.index

Methods in org.apache.lucene.index that return Similarity
`Similarity` `IndexWriter.getSimilarity()` Expert: Return the Similarity implementation used by this IndexWriter.

Methods in org.apache.lucene.index with parameters of type Similarity
`void` `IndexWriter.setSimilarity(Similarity similarity)` Expert: Set the Similarity implementation used by this IndexWriter.

Constructors in org.apache.lucene.index with parameters of type Similarity
`FieldNormModifier(Directory d, Similarity s)` Constructor for code that wishes to use this class programatically If Similarity is null, kill the field norms.

Uses of Similarity in org.apache.lucene.misc

Subclasses of Similarity in org.apache.lucene.misc
`class` `SweetSpotSimilarity` A similarity with a lengthNorm that provides for a "platuea" of equally good lengths, and tf helper functions.

Constructors in org.apache.lucene.misc with parameters of type Similarity
`LengthNormModifier(Directory d, Similarity s)` Constructor for code that wishes to use this class progaomatically.

Uses of Similarity in org.apache.lucene.search

Subclasses of Similarity in org.apache.lucene.search
`class` `DefaultSimilarity` Expert: Default scoring implementation.
`class` `SimilarityDelegator` Expert: Delegating scoring implementation.

Methods in org.apache.lucene.search that return Similarity
`static Similarity` `Similarity.getDefault()` Return the default Similarity implementation used by indexing and search code.
`Similarity` `Searcher.getSimilarity()` Expert: Return the Similarity implementation used by this Searcher.
`Similarity` `Scorer.getSimilarity()` Returns the Similarity implementation used by this scorer.
`Similarity` `Query.getSimilarity(Searcher searcher)` Expert: Returns the Similarity implementation to be used for this query.
`Similarity` `BooleanQuery.getSimilarity(Searcher searcher)`

Methods in org.apache.lucene.search with parameters of type Similarity
`static void` `Similarity.setDefault(Similarity similarity)` Set the default Similarity implementation used by indexing and search code.
`void` `Searcher.setSimilarity(Similarity similarity)` Expert: Set the Similarity implementation used by this Searcher.

Constructors in org.apache.lucene.search with parameters of type Similarity
`ConstantScoreQuery.ConstantScorer(Similarity similarity, IndexReader reader, Weight w)`
`Scorer(Similarity similarity)` Constructs a Scorer.
`SimilarityDelegator(Similarity delegee)` Construct a `Similarity` that delegates all methods to another.

Uses of Similarity in org.apache.lucene.search.payloads

Methods in org.apache.lucene.search.payloads with parameters of type Similarity
`protected void` `BoostingTermQuery.BoostingTermWeight.BoostingSpanScorer.processPayload(Similarity similarity)`

Constructors in org.apache.lucene.search.payloads with parameters of type Similarity
`BoostingTermQuery.BoostingTermWeight.BoostingSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms)`

Uses of Similarity in org.apache.lucene.search.similar

Methods in org.apache.lucene.search.similar that return Similarity
`Similarity` `MoreLikeThis.getSimilarity()`

Methods in org.apache.lucene.search.similar with parameters of type Similarity
`void` `MoreLikeThis.setSimilarity(Similarity similarity)`

Constructors in org.apache.lucene.search.similar with parameters of type Similarity
`MoreLikeThis(IndexReader ir, Similarity sim)`

Uses of Similarity in org.apache.lucene.search.spans

Fields in org.apache.lucene.search.spans declared as Similarity
`protected Similarity` `SpanWeight.similarity`

Constructors in org.apache.lucene.search.spans with parameters of type Similarity
`SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms)`

Uses of Similarity in org.apache.lucene.store.instantiated

Methods in org.apache.lucene.store.instantiated that return Similarity
`Similarity` `InstantiatedIndexWriter.getSimilarity()`

Methods in org.apache.lucene.store.instantiated with parameters of type Similarity
`void` `InstantiatedIndexWriter.setSimilarity(Similarity similarity)`

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