jruby/docs BETA
org.apache.lucene.search.similarities 54
C AfterEffect
C AfterEffectB
C AfterEffectL
C Axiomatic
C AxiomaticF1EXP
C AxiomaticF1LOG
C AxiomaticF2EXP
C AxiomaticF2LOG
C AxiomaticF3EXP
C AxiomaticF3LOG
C BM25Similarity
C BasicModel
C BasicModelG
C BasicModelIF
C BasicModelIn
C BasicModelIne
C BasicStats
C BooleanSimilarity
I BulkSimScorer
C ClassicSimilarity
I CollectionModel
C DFISimilarity
C DFRSimilarity
C DefaultCollectionModel
C Distribution
C DistributionLL
C DistributionSPL
C IBSimilarity
C Independence
C IndependenceChiSquared
C IndependenceSaturated
C IndependenceStandardized
C IndriCollectionModel
C IndriDirichletSimilarity
C LMDirichletSimilarity
C LMJelinekMercerSimilarity
C LMSimilarity
C LMStats
C Lambda
C LambdaDF
C LambdaTTF
C MultiSimilarity
C NoNormalization
C Normalization
C NormalizationH1
C NormalizationH2
C NormalizationH3
C NormalizationZ
C PerFieldSimilarityWrapper
C RawTFSimilarity
C SimScorer
C Similarity
C SimilarityBase
C TFIDFSimilarity
LMStats — members 3+
C new(field, boost)
M collection_probability() double
M collection_probability=(collection_probability)
from BasicStats
M avg_field_length() double
M avg_field_length=(avg_field_length)
M boost() double
M doc_freq() long
M doc_freq=(doc_freq)
M number_of_documents() long
M number_of_documents=(number_of_documents)
M number_of_field_tokens() long
M number_of_field_tokens=(number_of_field_tokens)
M total_term_freq() long
M total_term_freq=(total_term_freq)

org.apache.lucene.search.similarities.LMStats

class extends BasicStats 3 members

Stores the collection distribution of the current term.

Constructors

new

new ( String field, double boost )
Java: <init>(String field, double boost)

Creates LMStats for the provided field and query-time boost

Instance Methods

collection_probability

double collection_probability ( )
Java: getCollectionProbability() · also: get_collection_probability

Returns the probability that the current term is generated by the collection.

collection_probability=

collection_probability= ( double collection_probability )
Java: setCollectionProbability(double collectionProbability) · also: set_collection_probability

Sets the probability that the current term is generated by the collection.

Inherited

from BasicStats

avg_field_length

double avg_field_length ( )
Java: getAvgFieldLength() · also: get_avg_field_length

Returns the average field length.

avg_field_length=

avg_field_length= ( double avg_field_length )
Java: setAvgFieldLength(double avgFieldLength) · also: set_avg_field_length

Sets the average field length.

boost

double boost ( )
Java: getBoost() · also: get_boost

Returns the total boost.

doc_freq

long doc_freq ( )
Java: getDocFreq() · also: get_doc_freq

Returns the document frequency.

doc_freq=

doc_freq= ( long doc_freq )
Java: setDocFreq(long docFreq) · also: set_doc_freq

Sets the document frequency.

number_of_documents

long number_of_documents ( )
Java: getNumberOfDocuments() · also: get_number_of_documents

Returns the number of documents.

number_of_documents=

number_of_documents= ( long number_of_documents )
Java: setNumberOfDocuments(long numberOfDocuments) · also: set_number_of_documents

Sets the number of documents.

number_of_field_tokens

long number_of_field_tokens ( )
Java: getNumberOfFieldTokens() · also: get_number_of_field_tokens

Returns the total number of tokens in the field.

number_of_field_tokens=

number_of_field_tokens= ( long number_of_field_tokens )
Java: setNumberOfFieldTokens(long numberOfFieldTokens) · also: set_number_of_field_tokens

Sets the total number of tokens in the field.

total_term_freq

long total_term_freq ( )
Java: getTotalTermFreq() · also: get_total_term_freq

Returns the total number of occurrences of this term across all documents.

total_term_freq=

total_term_freq= ( long total_term_freq )
Java: setTotalTermFreq(long totalTermFreq) · also: set_total_term_freq

Sets the total number of occurrences of this term across all documents.

this work for additional information regarding copyright ownership.