updateStemmingOptions method

Future<UpdateStemmingOptionsResponse> updateStemmingOptions({
  1. required String domainName,
  2. required String stems,
})

Configures a stemming dictionary for the search domain. The stemming dictionary is used during indexing and when processing search requests. The maximum size of the stemming dictionary is 500 KB.

May throw BaseException. May throw InternalException. May throw InvalidTypeException. May throw LimitExceededException. May throw ResourceNotFoundException.

Implementation

Future<UpdateStemmingOptionsResponse> updateStemmingOptions({
  required String domainName,
  required String stems,
}) async {
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  ArgumentError.checkNotNull(stems, 'stems');
  final $request = <String, dynamic>{};
  $request['DomainName'] = domainName;
  $request['Stems'] = stems;
  final $result = await _protocol.send(
    $request,
    action: 'UpdateStemmingOptions',
    version: '2011-02-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateStemmingOptionsRequest'],
    shapes: shapes,
    resultWrapper: 'UpdateStemmingOptionsResult',
  );
  return UpdateStemmingOptionsResponse.fromXml($result);
}