Step 2: Applying refinements by creating a new query

Once refinement values have been retrieved/exposed, these values typically are used to create additional refinement navigation queries.

Based on the result in Step 1, the user has requested a list of red wines, which are defined by the Red managed attribute value. A follow-on request uses the SelectedRefinementFilter type to retrieve the records:
<Request xmlns="http://www.endeca.com/MDEX/conversation/3/0">
   <State>
      <Name>RefState</Name>
      <SelectedRefinementFilter Name="WineType" Spec="Red" Id="MyRef">
      </SelectedRefinementFilter>
   </State>
   <RecordListConfig Id="RecList" MaxPages="10">
      <StateName>RefState</StateName>
      <Column>WineType</Column>
      <Column>Wine</Column>
      <RecordsPerPage>5</RecordsPerPage>
   </RecordListConfig>
</Request>

The resulting RecordList entries are then displayed to the user by the front-end code.