C# Класс DBreeze.TextSearch.SBlock

Text search block
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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)

Приватные методы

Метод Описание
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

Описание методов

And() публичный Метод

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
Результат SBlock

And() публичный Метод

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
Результат SBlock

Exclude() публичный Метод

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
Результат SBlock

Exclude() публичный Метод

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
Результат SBlock

GetDocumentIDs() публичный Метод

IEnumerable returning External GetDocumentIDs
public GetDocumentIDs ( ) : IEnumerable
Результат IEnumerable

Or() публичный Метод

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
Результат SBlock

Or() публичный Метод

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
Результат SBlock

Xor() публичный Метод

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
Результат SBlock

Xor() публичный Метод

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
Результат SBlock