Amazon OpenSearch Serverless - Index Configuration, Stemmer Override Issue

0

Hi, We are considering migration to the OpenSearch Serverless from the managed domains. However, our index configuration is quite big and consists of multiple mappings, and analyzers, including the stemmer overriding.

Sadly, after thorough investigation we have found out that OpenSearch Serverless doesn't work with any overriden stemmer. I have prepared simple MVP showcasing the issue. Index settings configuration:

{
    "settings": {
        "analysis": {
            "analyzer": {
                "my_analyzer": {
                    "tokenizer": "standard",
                    "filter": [
                        "lowercase",
                        "custom_stems",
                        "porter_stem"
                    ]
                }
            },
            "filter": {
                "custom_stems": {
                    "type": "stemmer_override",
                    "rules": [
                        "running, runs => run",
                        "stemmer => stemmer"
                    ]
                }
            }
        }
    },
    "mappings": {
        "properties": {
            "textfield": {
                "type": "text",
                "analyzer": "my_analyzer"
            }
        }
    }
}

After such index is created, none of the documents can be added. After adding even the simplest

{
    "textfield": "any value"
}

The following error is returned after around 11s:

{
    "error": {
        "root_cause": [
            {
                "type": "exception",
                "reason": "Internal error occurred while processing request"
            }
        ],
        "type": "exception",
        "reason": "Internal error occurred while processing request"
    },
    "status": 500
}

Can someone please clarify whether the stemmer override analyzer works on the amazon opensearch serverless? As far as I know we cannot have access to any logs created by the serverless, so we cannot investigate it more. It is actually quite a blocker for us, as we would have to adjust the configuration of our current index working perfectly fine on the managed domains. Thanks in advance! Hubert

posta 8 mesi fa167 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande