The setIndexedListFields() method sets the fields which are indexed for a given list. Only fields that are indexed may be specified in calls to searchListMembers().
Input
[vrtypens:setIndexedListFieldsArgs]
session_id [xsd:string] (required)
Your API session id.
list_id [xsd:int] (required)
The id of the list whose indexed fields are being set.
indexed_fields [vrtypens:ArrayOfString] (required)
A list of the names of the fields that should be indexed.
Output
[xsd:boolean]
Examples
Perl
$vrapi->setIndexedListFields( {
session_id => $sid,
list_id => $cid,
indexed_fields => ['country'],
} );
PHP
$vrapi->setIndexedListFields( array (
'session_id' => $sid,
'list_id' => $cid,
'indexed_fields' => array ( 'country' ),
));
Ruby
vr.setIndexedListFields({
'session_id' => sid,
'list_id' => cid,
'indexed_fields' => [ 'country' ],
})
