jruby/docs BETA
Navigation
org.apache.lucene.search.similarities.LMSimilarity 3
I CollectionModel
C DefaultCollectionModel
C LMStats
LMStats — members 3+
C new(field, boost)
M collection_probability() double
C collection_probability=(collection_probability)
from BasicStats
M avg_field_length() double
C avg_field_length=(avg_field_length)
M boost() double
M doc_freq() long
C doc_freq=(doc_freq)
M number_of_documents() long
C number_of_documents=(number_of_documents)
M number_of_field_tokens() long
C number_of_field_tokens=(number_of_field_tokens)
M total_term_freq() long
C total_term_freq=(total_term_freq)

org.apache.lucene.search.similarities.LMSimilarity.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.