Greater-than range filter format

The LowerBound element lets you make greater-than range filter queries.

To make a greater-than query, use only the LowerBound element. Because you are specifying only the lower bound of the range, all returned records will be above this bound (i.e., be greater than the lower bound).

In addition, the Inclusive attribute determines whether the specified value is included in the range:
  • If Inclusive is set to false, the value for the LowerBound element is exclusive. That is, the specified value for the UpperBound element is not included in the range.
  • If Inclusive is set to true, the value for the LowerBound element is inclusive.

The default for the Inclusive attribute is false (that is, if you omit the attribute, the query will work as if you had specified false for this attribute).

Greater-than example

The following is an example of an inclusive greater-than query against a bicycle data set:
<cs:Request xmlns="http://www.endeca.com/MDEX/conversation/1/0">
   <cs:State/>
   <cs:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:type="RangeFilterOperator">
     <cs:RangeFilter AttributeName="Score">
        <cs:LowerBound Inclusive="true">90</cs:LowerBound>
     </cs:RangeFilter>
   </cs:Operator>
   <cs:ContentElementConfig xsi:type="RecordListConfig" 
      HandlerFunction="RecordListHandler" 
      HandlerNamespace="http://www.endeca.com/MDEX/conversation/1/0" 
      Id="RecordList" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</cs:Request>

This example returns all bicycles whose rating score is 90 and above, including those with a score of 90.

In the example, if Inclusive had been set to false, the query would include all bicycles whose rating score is greater than 90, but would not include bicycles with a score of 90.