Skip to content

[Issue]: Snowball Example Does Not Work #1314

Open
@bliles

Description

@bliles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-teamIssues pending triage by the Docs Teamtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions