C# Класс Lucene.Net.Sandbox.Queries.SlowFuzzyQuery

Наследование: Lucene.Net.Search.MultiTermQuery
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
defaultMaxExpansions int
defaultMinSimilarity float
defaultPrefixLength int

Защищенные свойства (Protected)

Свойство Тип Описание
term Lucene.Net.Index.Term

Открытые методы

Метод Описание
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetTermsEnum ( Lucene.Net.Index.Terms terms, Lucene.Net.Util.AttributeSource atts ) : Lucene.Net.Index.TermsEnum
SlowFuzzyQuery ( Lucene.Net.Index.Term term ) : Lucene.Net.Index

Calls SlowFuzzyQuery(term, defaultMinSimilarity, 0, defaultMaxExpansions).

SlowFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity ) : Lucene.Net.Index

Calls SlowFuzzyQuery(term, minimumSimilarity, 0, defaultMaxExpansions).

SlowFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity, int prefixLength ) : Lucene.Net.Index

Calls SlowFuzzyQuery(term, minimumSimilarity, prefixLength, defaultMaxExpansions).

SlowFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity, int prefixLength, int maxExpansions ) : Lucene.Net.Index

Create a new SlowFuzzyQuery that will match terms with a similarity of at least minimumSimilarity to term. If a prefixLength > 0 is specified, a common prefix of that length is also required.

ToString ( string field ) : string

Описание методов

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetTermsEnum() публичный Метод

public GetTermsEnum ( Lucene.Net.Index.Terms terms, Lucene.Net.Util.AttributeSource atts ) : Lucene.Net.Index.TermsEnum
terms Lucene.Net.Index.Terms
atts Lucene.Net.Util.AttributeSource
Результат Lucene.Net.Index.TermsEnum

SlowFuzzyQuery() публичный Метод

Calls SlowFuzzyQuery(term, defaultMinSimilarity, 0, defaultMaxExpansions).
public SlowFuzzyQuery ( Lucene.Net.Index.Term term ) : Lucene.Net.Index
term Lucene.Net.Index.Term
Результат Lucene.Net.Index

SlowFuzzyQuery() публичный Метод

Calls SlowFuzzyQuery(term, minimumSimilarity, 0, defaultMaxExpansions).
public SlowFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity ) : Lucene.Net.Index
term Lucene.Net.Index.Term
minimumSimilarity float
Результат Lucene.Net.Index

SlowFuzzyQuery() публичный Метод

Calls SlowFuzzyQuery(term, minimumSimilarity, prefixLength, defaultMaxExpansions).
public SlowFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity, int prefixLength ) : Lucene.Net.Index
term Lucene.Net.Index.Term
minimumSimilarity float
prefixLength int
Результат Lucene.Net.Index

SlowFuzzyQuery() публичный Метод

Create a new SlowFuzzyQuery that will match terms with a similarity of at least minimumSimilarity to term. If a prefixLength > 0 is specified, a common prefix of that length is also required.
/// if is >= 1 or < 0 /// or if < 0 ///
public SlowFuzzyQuery ( Lucene.Net.Index.Term term, float minimumSimilarity, int prefixLength, int maxExpansions ) : Lucene.Net.Index
term Lucene.Net.Index.Term the term to search for
minimumSimilarity float /// a value between 0 and 1 to set the required similarity /// between the query term and the matching terms. For example, for a /// of 0.5 a term of the same length /// as the query term is considered similar to the query term if the edit distance /// between both terms is less than length(term)*0.5 /// /// Alternatively, if is >= 1f, it is interpreted /// as a pure Levenshtein edit distance. For example, a value of 2f /// will match all terms within an edit distance of 2 from the /// query term. Edit distances specified in this way may not be fractional. ///
prefixLength int length of common (non-fuzzy) prefix
maxExpansions int /// the maximum number of terms to match. If this number is /// greater than when the query is rewritten, /// then the maxClauseCount will be used instead. ///
Результат Lucene.Net.Index

ToString() публичный Метод

public ToString ( string field ) : string
field string
Результат string

Описание свойств

defaultMaxExpansions публичное статическое свойство

public static int defaultMaxExpansions
Результат int

defaultMinSimilarity публичное статическое свойство

public static float defaultMinSimilarity
Результат float

defaultPrefixLength публичное статическое свойство

public static int defaultPrefixLength
Результат int

term защищенное свойство

protected Term,Lucene.Net.Index term
Результат Lucene.Net.Index.Term