An EQL record filter can specify managed attribute values for the search criteria.
Hierarchy function | |
---|---|
IS_ANCESTOR(managedAttribute, valueSpec) | Include the record if the named attribute is the attribute specified or an ancestor. If the attribute is not a member of the specified hierarchy, it is a query-time error. |
IS_DESCENDANT(managedAttribute, valueSpec) | Include the record if the named attribute is the attribute specified or a descendant, and if the specified value spec matches. If the attribute is not a member of the specified hierarchy, it is a query-time error. |
For both functions, managedAttribute is the name of a managed attribute, and valueSpec (specified as a string) is the spec (not the value name) of the managed attribute value.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <Request xmlns="http://www.endeca.com/MDEX/conversation/2/0"> <State> <DataSourceFilterString>COUNTRY_NAME = 'United States of America'</DataSourceFilterString> <SelectionFilterString>IS_DESCENDANT(ProductCategory, '140')</SelectionFilterString> </State> <ContentElementConfig xsi:type="RecordListConfig" HandlerFunction="RecordListHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/handlers/2010" Id="RecordList" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> </ContentElementConfig> </Request> </soapenv:Body> </soapenv:Envelope>
<cs:Record> ... <ProductCategory cs:ValueName="Endurance Racing" type="mdex:string">140</ProductCategory> ... </cs:Record>