The
RecordCountConfig type is used for counting the records
in the state.
RecordCountConfig syntax
The format of the
RecordCountConfig type is:
<RecordCountConfig Id="?">
<StateName>?</StateName>
</RecordCountConfig>
The meanings of the
RecordCountConfig elements and attributes are as
follows:
Element/Attribute
|
Meaning
|
Id
|
Required. An arbitrary identifier for this
RecordCountConfig.
|
StateName
|
Specifies an existing named state in the
request, using these rules:
- If the request
has multiple named states, then the
StateName element must reference one (and
only one) of the named states.
- If the request
has only one named state, then it is optional as to whether the
StateName element is used to reference
that named state (as the state will be used in any event in the
RecordCountConfig).
- If the request
has an unnamed state, then the
StateName element cannot be used.
|
RecordCountConfig example
This example performs a record search and uses a
RecordCountConfig to count the number of records
that were returned:
<Request xmlns="http://www.endeca.com/MDEX/conversation/3/0">
<State>
<TextSearchFilter Key="Flavors" Mode="AllPartial" Language="en">oak</TextSearchFilter>
</State>
<RecordCountConfig Id="NumRecs"/>
</Request>
Note that the
StateName was not used because the state is not named.