C# Class Rubber.DSL.Query.FuzzyQueryBuilder

A Query that does fuzzy matching for a specific value.
Inheritance: IQueryBuilder
显示文件 Open project: stephenpope/Rubber

Public Methods

Method Description
Boost ( float boost ) : FuzzyQueryBuilder

Sets the boost for this query. Documents matching this query will (in addition to the normal weightings) have their score multiplied by the boost provided.

FuzzyQueryBuilder ( string name, object value ) : System

Constructs a new term query.

MinSimilarity ( float defaultMinSimilarity ) : FuzzyQueryBuilder
PrefixLength ( int prefixLength ) : FuzzyQueryBuilder
ToJsonObject ( ) : object
ToString ( ) : string

Method Details

Boost() public method

Sets the boost for this query. Documents matching this query will (in addition to the normal weightings) have their score multiplied by the boost provided.
public Boost ( float boost ) : FuzzyQueryBuilder
boost float
return FuzzyQueryBuilder

FuzzyQueryBuilder() public method

Constructs a new term query.
public FuzzyQueryBuilder ( string name, object value ) : System
name string The name of the field
value object The value of the term
return System

MinSimilarity() public method

public MinSimilarity ( float defaultMinSimilarity ) : FuzzyQueryBuilder
defaultMinSimilarity float
return FuzzyQueryBuilder

PrefixLength() public method

public PrefixLength ( int prefixLength ) : FuzzyQueryBuilder
prefixLength int
return FuzzyQueryBuilder

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string