Skip to content

[Issue]: Snowball Example Does Not Work #1314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bliles opened this issue Apr 29, 2025 · 0 comments
Open

[Issue]: Snowball Example Does Not Work #1314

bliles opened this issue Apr 29, 2025 · 0 comments
Labels
needs-team Issues pending triage by the Docs Team triage

Comments

@bliles
Copy link

bliles commented Apr 29, 2025

Type of issue

Inaccurate

What documentation page is affected

https://www.elastic.co/docs/reference/text-analysis/analysis-snowball-tokenfilter

What happened?

Followed the Snowball token filter example to create an English custom analyzer for a property on a new index. I have noted the request/response:

Request:
PUT /my-index-00001

{
    "settings": {
        "analysis": {
            "analyzer": {
                "my_analyzer": {
                    "tokenizer": "standard",
                    "filter": [
                        "lowercase",
                        "my_snow"
                    ]
                }
            }
        },
        "filter": {
            "my_snow": {
                "type": "snowball",
                "language": "English"
            }
        }
    },
    "mappings": {
        "properties": {
            "id": {
                "type": "integer"
            },
            "parentId": {
                "type": "integer"
            },
            "name": {
                "type": "text",
                "analyzer": "my_analyzer"
            },
            "description": {
                "type": "text"
            },
            "path": {
                "type": "text",
                "fields": {
                    "raw": {
                        "type": "keyword"
                    }
                }
            },
            "imageUrl": {
                "type": "text"
            },
            "depth": {
                "type": "integer"
            },
            "l": {
                "type": "integer"
            },
            "r": {
                "type": "integer"
            }
        }
    }
}

Response:

{
"error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "unknown setting [index.filter.my_snow.language] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "unknown setting [index.filter.my_snow.language] please check that any required plugins are installed, or check the breaking changes documentation for removed settings",
        "suppressed": [
            {
                "type": "illegal_argument_exception",
                "reason": "unknown setting [index.filter.my_snow.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
            }
        ]
    },
    "status": 400
}

Additional info

I am running Elasticsearch 8.9.0 according to my research there should not be a plugin necessary to use snowball analysis.

@bliles bliles added the triage label Apr 29, 2025
@github-actions github-actions bot added the needs-team Issues pending triage by the Docs Team label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-team Issues pending triage by the Docs Team triage
Projects
None yet
Development

No branches or pull requests

1 participant