Keyoti SearchUnit API Docs
ApplyANDLogic Method (allDocumentsList, Configuration)
API DocumentationKeyoti.SearchEngine.SearchSearchLogicApplyANDLogic(IntListList, Configuration)
Keyoti SearchUnit v6
Receives an IntListList of IntList objects, each IntList contains the document IDs matching each Element in the query, and applies logic to the list.
Declaration Syntax
C#Visual Basic
public static IntList ApplyANDLogic(
	IntListList allDocumentsList,
	Configuration Configuration
)
Public Shared Function ApplyANDLogic ( 
	allDocumentsList As IntListList,
	Configuration As Configuration
) As IntList
Parameters
allDocumentsList (IntListList)
Document IDs to apply the AND logic to
Configuration (Configuration)
The instance of the Configuration class that holds the settings to be used.
Return Value
IntList
IntList of Document IDs satisfying the AND logic
Remarks
Eg. if a query = "one two" then two Elements are created, one WordElement for "one" and one for "two". The query specifies AND logic between those elements, thus this method receives an ArrayList with elements as follows; allDocumentsList[0] = {1, 3, 5} where 1, 3 and 5 are document IDs with "one" in them. allDocumentsList[1] = {3, 5, 8, 10} where 3, 5, 8, 10 are document IDs with "two" in them. This method will then return an IntList of ints with {3, 5} in it.

Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2022.8.22.610