Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions ibmcloudant/cloudant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9649,7 +9649,9 @@ class Analyzer:
* For query text indexes the default is `keyword`
* For a query text index default_field the default is `standard`.
:param List[str] stopwords: (optional) Custom stopwords to use with the named
analyzer.
analyzer where supported. Not used for `keyword`, `simple`, `whitespace`,
`simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded
case for analyzers that perform folding.
"""

def __init__(
Expand All @@ -9668,7 +9670,9 @@ def __init__(
* For query text indexes the default is `keyword`
* For a query text index default_field the default is `standard`.
:param List[str] stopwords: (optional) Custom stopwords to use with the
named analyzer.
named analyzer where supported. Not used for `keyword`, `simple`,
`whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure
stopwords match the folded case for analyzers that perform folding.
"""
self.name = name
self.stopwords = stopwords
Expand Down Expand Up @@ -9782,7 +9786,9 @@ class AnalyzerConfiguration:
* For query text indexes the default is `keyword`
* For a query text index default_field the default is `standard`.
:param List[str] stopwords: (optional) Custom stopwords to use with the named
analyzer.
analyzer where supported. Not used for `keyword`, `simple`, `whitespace`,
`simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded
case for analyzers that perform folding.
:param Analyzer default: (optional) Schema for a full text search analyzer.
:param dict fields: (optional) Schema for mapping a field name to a per field
analyzer.
Expand All @@ -9806,7 +9812,9 @@ def __init__(
* For query text indexes the default is `keyword`
* For a query text index default_field the default is `standard`.
:param List[str] stopwords: (optional) Custom stopwords to use with the
named analyzer.
named analyzer where supported. Not used for `keyword`, `simple`,
`whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure
stopwords match the folded case for analyzers that perform folding.
:param Analyzer default: (optional) Schema for a full text search analyzer.
:param dict fields: (optional) Schema for mapping a field name to a per
field analyzer.
Expand Down Expand Up @@ -12271,8 +12279,8 @@ class DesignDocument:
The validation function can abort the pending document write by throwing one of
two error objects:
```
// user is not authorized to make the change but may re-authenticate throw({
unauthorized: 'Error message here.' });
// user is not authorized to make the change but may
// re-authenticate throw({ unauthorized: 'Error message here.' });
// change is not allowed throw({ forbidden: 'Error message here.' });
```
The function takes 4 parameters:
Expand Down Expand Up @@ -12392,8 +12400,8 @@ def __init__(
The validation function can abort the pending document write by throwing
one of two error objects:
```
// user is not authorized to make the change but may re-authenticate
throw({ unauthorized: 'Error message here.' });
// user is not authorized to make the change but may
// re-authenticate throw({ unauthorized: 'Error message here.' });
// change is not allowed throw({ forbidden: 'Error message here.' });
```
The function takes 4 parameters:
Expand Down