C# Class DBreeze.TextSearch.SBlock

Text search block
ファイルを表示 Open project: hhblaze/DBreeze Class Usage Examples

Public Methods

Method Description
And ( SBlock block ) : SBlock

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(

And ( string containsWords, string fullMatchWords = "", bool blockAnd = true ) : SBlock

Adding new logical block (And or Or, depending upon parameter blockAnd)

Exclude ( SBlock block ) : SBlock

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(

Exclude ( string containsWords, string fullMatchWords = "", bool blockAnd = true ) : SBlock

Adding new logical block (And or Or, depending upon parameter blockAnd)

GetDocumentIDs ( ) : IEnumerable

IEnumerable returning External GetDocumentIDs

Or ( SBlock block ) : SBlock

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(

Or ( string containsWords, string fullMatchWords = "", bool blockAnd = true ) : SBlock

Adding new logical block (And or Or, depending upon parameter blockAnd)

Xor ( SBlock block ) : SBlock

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(

Xor ( string containsWords, string fullMatchWords = "", bool blockAnd = true ) : SBlock

Adding new logical block (And or Or, depending upon parameter blockAnd)

Private Methods

Method Description
CreateBlock ( SBlock block, eOperation operation ) : SBlock
GetArrays ( ) : List

Universal function resulting final one/many arrays (in AND) and one array in (OR, XOR, EXCLUDE)

GetPureBlockArrays ( ) : void

Fills up foundArrays for the current block. If logic is And and word is not found can clear already array on that level. Concenrs only pure (not logical) blocks

Method Details

And() public method

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(
public And ( SBlock block ) : SBlock
block SBlock
return SBlock

And() public method

Adding new logical block (And or Or, depending upon parameter blockAnd)
public And ( 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 and block
return SBlock

Exclude() public method

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(
public Exclude ( SBlock block ) : SBlock
block SBlock
return SBlock

Exclude() public method

Adding new logical block (And or Or, depending upon parameter blockAnd)
public Exclude ( 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 and block
return SBlock

GetDocumentIDs() public method

IEnumerable returning External GetDocumentIDs
public GetDocumentIDs ( ) : IEnumerable
return IEnumerable

Or() public method

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(
public Or ( SBlock block ) : SBlock
block SBlock
return SBlock

Or() public method

Adding new logical block (And or Or, depending upon parameter blockAnd)
public Or ( 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 and block
return SBlock

Xor() public method

Returns last added block. Can be added existing block or new block in format new DBreeze.TextSearch.BlockAnd(... or new DBreeze.TextSearch.BlockOr(
public Xor ( SBlock block ) : SBlock
block SBlock
return SBlock

Xor() public method

Adding new logical block (And or Or, depending upon parameter blockAnd)
public Xor ( 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 and block
return SBlock