C# Class Argentini.Halide.H3Search

The Halide.H3Search class provides a way to generate search queries for searching SQL databases.
Show file Open project: argentini/Halide Class Usage Examples

Public Methods

Method Description
AddAddFieldName ( string fieldName ) : void

Add a field name to consider in the search query.

AddSearchTerm ( string term ) : void

Add a search term.

GetQuery ( ) : string

Assemble the query fields and search terms into a SQL WHERE clause fragment.

H3Search ( bool ignoreNoiseWords ) : System

Constructor without any search terms specified.

H3Search ( string searchTerms, bool ignoreNoiseWords ) : System

Constructor accepts search terms delimitted by whitespace.

Method Details

AddAddFieldName() public method

Add a field name to consider in the search query.
public AddAddFieldName ( string fieldName ) : void
fieldName string Field name to add to the query.
return void

AddSearchTerm() public method

Add a search term.
public AddSearchTerm ( string term ) : void
term string Search term to add to the query.
return void

GetQuery() public method

Assemble the query fields and search terms into a SQL WHERE clause fragment.
public GetQuery ( ) : string
return string

H3Search() public method

Constructor without any search terms specified.
public H3Search ( bool ignoreNoiseWords ) : System
ignoreNoiseWords bool Ignore common noise words like prepositions. Does not apply to quoted phrases.
return System

H3Search() public method

Constructor accepts search terms delimitted by whitespace.
public H3Search ( string searchTerms, bool ignoreNoiseWords ) : System
searchTerms string Search terms delimitted by whitespace.
ignoreNoiseWords bool Ignore common noise words like prepositions. Does not apply to quoted phrases.
return System