C# Class DBreeze.TextSearch.TextSearchTable

Manager for word aligned bitmap indexes
Show file Open project: hhblaze/DBreeze

Public Properties

Property Type Description
Descending bool
ExternalDocumentIdStart byte[]
ExternalDocumentIdStop byte[]
NoisyQuantity int
SearchCriteriaIsNoisy bool

Public Methods

Method Description
Block ( string containsWords, string fullMatchWords = "", bool blockAnd = true ) : SBlock

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs

BlockAnd ( IEnumerable containsWords, IEnumerable fullMatchWords ) : SBlock

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs

BlockAnd ( string containsWords, string fullMatchWords = "" ) : SBlock

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs

BlockOr ( IEnumerable containsWords, IEnumerable fullMatchWords ) : SBlock

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs

BlockOr ( string containsWords, string fullMatchWords = "" ) : SBlock

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs

TextSearchTable ( Transactions tran, string tableName ) : System

Private Methods

Method Description
ComputeWordsOrigin ( ) : void

WordsPrepare ( IEnumerable searchKeywords, bool fullMatch, bool>.Dictionary &wordsList ) : void

Method Details

Block() public method

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs
public Block ( string containsWords, string fullMatchWords = "", bool blockAnd = true ) : SBlock
containsWords string space separated words to be used by "contains" logic
fullMatchWords string space separated words to be used by "full-match" logic
blockAnd bool default value is true, indicating BlockAnd
return SBlock

BlockAnd() public method

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs
public BlockAnd ( IEnumerable containsWords, IEnumerable fullMatchWords ) : SBlock
containsWords IEnumerable space separated words to be used by "contains" logic
fullMatchWords IEnumerable space separated words to be used by "full-match" logic
return SBlock

BlockAnd() public method

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs
public BlockAnd ( string containsWords, string fullMatchWords = "" ) : SBlock
containsWords string space separated words to be used by "contains" logic
fullMatchWords string space separated words to be used by "full-match" logic
return SBlock

BlockOr() public method

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs
public BlockOr ( IEnumerable containsWords, IEnumerable fullMatchWords ) : SBlock
containsWords IEnumerable space separated words to be used by "contains" logic
fullMatchWords IEnumerable space separated words to be used by "full-match" logic
return SBlock

BlockOr() public method

Generates a logical block: var tsm = tran.TextSearch("MyTextSearchTable"); tsm.Block("choose").And(new DBreeze.TextSearch.BlockAnd("pill")).Or(tsm.BlockOr("blue red")) .GetDocumentIDs
public BlockOr ( string containsWords, string fullMatchWords = "" ) : SBlock
containsWords string space separated words to be used by "contains" logic
fullMatchWords string space separated words to be used by "full-match" logic
return SBlock

TextSearchTable() public method

public TextSearchTable ( Transactions tran, string tableName ) : System
tran Transactions
tableName string
return System

Property Details

Descending public property

Default found documents will be returned descending (last added document first)
public bool Descending
return bool

ExternalDocumentIdStart public property

If not null limits the search range of the documents. ExternalDocumentID will be converted into InternalID and will be used as a ranges start
public byte[] ExternalDocumentIdStart
return byte[]

ExternalDocumentIdStop public property

If not null limits the search range of the documents. ExternalDocumentID will be converted into InternalID and will be used as a ranges stop
public byte[] ExternalDocumentIdStop
return byte[]

NoisyQuantity public property

Default value is 1000
public int NoisyQuantity
return int

SearchCriteriaIsNoisy public property

public bool SearchCriteriaIsNoisy
return bool