C# Class Rubber.DSL.Query.PrefixQueryBuilder

A Query that matches documents containing terms with a specified prefix.
Inheritance: IQueryBuilder
Show file Open project: stephenpope/Rubber

Public Methods

Method Description
Boost ( float boost ) : PrefixQueryBuilder

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.

PrefixQueryBuilder ( string name, string prefix ) : System

A Query that matches documents containing terms with a specified prefix.

Rewrite ( string rewrite ) : PrefixQueryBuilder
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 ) : PrefixQueryBuilder
boost float
return PrefixQueryBuilder

PrefixQueryBuilder() public method

A Query that matches documents containing terms with a specified prefix.
public PrefixQueryBuilder ( string name, string prefix ) : System
name string The name of the field
prefix string The prefix query
return System

Rewrite() public method

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

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string