indexDocuments method
Tells the search domain to start indexing its documents using the latest
text processing options and IndexFields
. This operation must
be invoked to make options whose OptionStatus has
OptionState
of RequiresIndexDocuments
visible in
search results.
May throw BaseException. May throw InternalException. May throw ResourceNotFoundException.
Implementation
Future<IndexDocumentsResponse> indexDocuments({
required String domainName,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
3,
28,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['DomainName'] = domainName;
final $result = await _protocol.send(
$request,
action: 'IndexDocuments',
version: '2011-02-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['IndexDocumentsRequest'],
shapes: shapes,
resultWrapper: 'IndexDocumentsResult',
);
return IndexDocumentsResponse.fromXml($result);
}