Searching via EBIS
Searching in documents or data of the system is not performed via search formulas or expressions. The EBIS client API facilitates creation of complex search requests using an object model. The EBIS plug-in uses the data passed in to search in the target system. The search results are conveniently returned in a unified object structure.
SearchConditions root = search.Conditions;// Compare field content category to "Animals"root.AddCompare("Category", "Animals", false, false);// Find documents containing a value between 0 and 10 in the Age fieldroot.AddRange("Age", 0, 10, false, false);// Append a new search condition list to the root ( parentheses )// This condition should not be met. Parameter (not = true) See reference.SearchConditions subCondition = root.AddConditions(true, false);// Compare field content to "Dog"subCondition.AddCompare("Species", "Dog", false, false);// Or compare field content Type to "Cat". Parameter ( or = true ) See reference.subCondition.AddCompare("Species", "Cat", false, true);
Meaning
Find all documents whose Category field contains the entry Animals and whose Age field contains a value between 1 and 10. Objects whose Species field contains the entry Dog or Cat are not to be found. Or, in a simplified version:
Category = "Animals" AND Age >= 0 AND Age >= 10 AND NOT ( Species= "Dog" OR Species= "Cat" )
For information on the use of searches and search results, see the respective reference documentation.