Using EQL filters with record and value searches

Either or both of the EQL record filters can be used with a record search or a value search.

The DataSourceFilterString component is especially useful (for example, as a security filter) to restrict the searchable records for these types of searches.

This example uses the DataSourceFilterString EQL filter with a record search:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Request xmlns="http://www.endeca.com/MDEX/conversation/2/0">
      <Language>fr</Language>
      <State>
        <DataSourceFilterString>FISCAL_MONTH_NAME = 'July'</DataSourceFilterString>
      </State>
      <Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:type="SearchOperator" Within="false">
        <SearchFilter Mode="AllPartial" RelevanceRankingStrategy="numfields"
         Key="PROD_CATEGORY" EnableSnippeting="false" Language="fr">
           hardware
        </SearchFilter>
      </Operator>
      <ContentElementConfig xsi:type="RecordListConfig"
         HandlerFunction="RecordListHandler"
         HandlerNamespace="http://www.endeca.com/MDEX/conversation/2/0"
         Id="RecordList" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Column>PROD_CATEGORY</Column>
         <RecordsPerPage>5</RecordsPerPage>
      </ContentElementConfig>
    </Request>
  </soap:Body>
</soap:Envelope>

The DataSourceFilterString filter first limits all the searchable records to those from the fiscal month of July. Then the SearchOperator uses the PROD_CATEGORY attribute for its record search.