The syntax for file-based record filter expressions closely mirrors the query level syntax, with some differences.
The full DTD for XML file-based record filter expressions is provided in the filter.dtd file packaged with the Endeca software release.
OR(AND(Manufacturer:Sony,1001), AND(Manufacturer:Aiwa,NOT(1002)), Manufacturer:Denon)is represented as a file-based expression using the following XML syntax:
<FILTER>
<FILTER_OR>
<FILTER_AND>
<PROP NAME="Manufacturer"><PVAL>Sony</PVAL></PROP>
<DVAL_ID ID="1001"/>
</FILTER_AND>
<FILTER_AND>
<PROP NAME="Manufacturer"><PVAL>Aiwa</PVAL></PROP>
<FILTER_NOT>
<DVAL_ID ID="1002"/>
</FILTER_NOT>
</FILTER_AND>
<PROP NAME="Manufacturer"><PVAL>Denon</PVAL></PROP>
</FILTER_OR>
</FILTER>
AND(FILTER(MyFilter),NOT(Manufacturer:Sony))can be represented as a file-based expression using the following XML:
<FILTER>
<FILTER_AND>
<FILTER_NAME NAME="MyFilter"/>
<FILTER_NOT>
<PROP NAME="Manufacturer"><PVAL>Sony</PVAL></PROP>
</FILTER_NOT>
</FILTER_AND>
</FILTER>