referred the analyzer in index, during index rebuild it throw below error
Your index could not be built: references invalid analyzer “lowerCaseAnalyzer” that has the following error: unrecognized fields [“charFilters”, “tokenFilters”, “tokenizer”]
We have the same problem and we’re unable to create a custom analyzer in any way. We tried what the OP did, it doesn’t surprise us that much that it doesn’t work because the fields “charFilters”, “tokenFilters” and “tokenizer” are not defined in the API documentation (https://docs.atlas.mongodb.com/reference/api/fts-analyzers-update-all/). The API let us put these fields, we then referred the analyzer in the index definition and it fails to build.
We don’t understand the PUT API because the customer analyzers seem to be defined in the index definition (https://docs.atlas.mongodb.com/reference/atlas-search/analyzers/custom/) when creating a new index, but again, call the POST endpoint as in the documentation returns “Invalid attribute analyzers specified”… and that’s true ! the API documentation nowhere mentions the field “analyzers”