C# Class Rubber.DSL.Query.WildcardQueryBuilder

Implements the wildcard search query. Supported wildcards are *, which matches any character sequence (including the empty one), and ?, which matches any single character. Note this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards * or ?.
Inheritance: IQueryBuilder
Show file Open project: stephenpope/Rubber

Public Methods

Method Description
Boost ( float boost ) : WildcardQueryBuilder

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.

Rewrite ( string rewrite ) : WildcardQueryBuilder
ToJsonObject ( ) : object
ToString ( ) : string
WildcardQueryBuilder ( string name, string query ) : System

Implements the wildcard search query. Supported wildcards are *, which matches any character sequence (including the empty one), and ?, which matches any single character. Note this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards * or

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 ) : WildcardQueryBuilder
boost float
return WildcardQueryBuilder

Rewrite() public method

public Rewrite ( string rewrite ) : WildcardQueryBuilder
rewrite string
return WildcardQueryBuilder

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string

WildcardQueryBuilder() public method

Implements the wildcard search query. Supported wildcards are *, which matches any character sequence (including the empty one), and ?, which matches any single character. Note this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow WildcardQueries, a Wildcard term should not start with one of the wildcards * or
public WildcardQueryBuilder ( string name, string query ) : System
name string The field name
query string The wildcard query string
return System