C# Class Kooboo.Commerce.Search.IndexQuery

Show file Open project: Kooboo/Ecommerce Class Usage Examples

Private Properties

Property Type Description
And IndexQuery
Boolean IndexQuery
CreateNumericRangeQuery Lucene.Net.Search.Query
CreateTermQuery Lucene.Net.Search.TermQuery
Or IndexQuery

Public Methods

Method Description
AddOrderBy ( string field ) : IndexQuery

Add sort field. Use + prefix for asc sorting, or use - prefix for desc sorting.

And ( Action action ) : IndexQuery
IndexQuery ( Type modelType, IndexSearcher searcher, Analyzer analyzer ) : System
Or ( Action action ) : IndexQuery
Paginate ( int pageIndex, int pageSize ) : Pagination
Search ( string field, string keywords ) : IndexQuery
ToFacets ( IEnumerable facets ) : IList
Where ( Query query ) : IndexQuery
WhereBetween ( string field, object fromValue, object toValue, bool fromInclusive, bool toInclusive ) : IndexQuery
WhereEquals ( string field, object value ) : IndexQuery
WhereGreaterThan ( string field, object value ) : IndexQuery
WhereGreaterThanOrEqual ( string field, object value ) : IndexQuery
WhereLessThan ( string field, object value ) : IndexQuery
WhereLessThanOrEqual ( string field, object value ) : IndexQuery

Private Methods

Method Description
And ( Query query ) : IndexQuery
Boolean ( Query query, Occur occur ) : IndexQuery
CreateNumericRangeQuery ( string property, Type propType, object fromValue, object toValue, bool minInclusive, bool maxInclusive ) : Query
CreateTermQuery ( string field, object value ) : TermQuery
Or ( Query query ) : IndexQuery

Method Details

AddOrderBy() public method

Add sort field. Use + prefix for asc sorting, or use - prefix for desc sorting.
public AddOrderBy ( string field ) : IndexQuery
field string
return IndexQuery

And() public method

public And ( Action action ) : IndexQuery
action Action
return IndexQuery

IndexQuery() public method

public IndexQuery ( Type modelType, IndexSearcher searcher, Analyzer analyzer ) : System
modelType System.Type
searcher Lucene.Net.Search.IndexSearcher
analyzer Lucene.Net.Analysis.Analyzer
return System

Or() public method

public Or ( Action action ) : IndexQuery
action Action
return IndexQuery

Paginate() public method

public Paginate ( int pageIndex, int pageSize ) : Pagination
pageIndex int
pageSize int
return Pagination

Search() public method

public Search ( string field, string keywords ) : IndexQuery
field string
keywords string
return IndexQuery

ToFacets() public method

public ToFacets ( IEnumerable facets ) : IList
facets IEnumerable
return IList

Where() public method

public Where ( Query query ) : IndexQuery
query Lucene.Net.Search.Query
return IndexQuery

WhereBetween() public method

public WhereBetween ( string field, object fromValue, object toValue, bool fromInclusive, bool toInclusive ) : IndexQuery
field string
fromValue object
toValue object
fromInclusive bool
toInclusive bool
return IndexQuery

WhereEquals() public method

public WhereEquals ( string field, object value ) : IndexQuery
field string
value object
return IndexQuery

WhereGreaterThan() public method

public WhereGreaterThan ( string field, object value ) : IndexQuery
field string
value object
return IndexQuery

WhereGreaterThanOrEqual() public method

public WhereGreaterThanOrEqual ( string field, object value ) : IndexQuery
field string
value object
return IndexQuery

WhereLessThan() public method

public WhereLessThan ( string field, object value ) : IndexQuery
field string
value object
return IndexQuery

WhereLessThanOrEqual() public method

public WhereLessThanOrEqual ( string field, object value ) : IndexQuery
field string
value object
return IndexQuery