﻿---
title: polish_stop token filter
description: The polish_stop token filter filters out Polish stopwords (_polish_), and any other custom stopwords specified by the user. This filter only supports...
url: https://www.elastic.co/elastic/docs-builder/docs/2847/reference/elasticsearch/plugins/analysis-polish-stop
products:
  - Elasticsearch
---

# polish_stop token filter
The `polish_stop` token filter filters out Polish stopwords (`_polish_`), and any other custom stopwords specified by the user. This filter only supports the predefined `_polish_` stopwords list. If you want to use a different predefined list, then use the [`stop` token filter](https://www.elastic.co/elastic/docs-builder/docs/2847/reference/text-analysis/analysis-stop-tokenfilter) instead.
```json

{
  "settings": {
    "index": {
      "analysis": {
        "analyzer": {
          "analyzer_with_stop": {
            "tokenizer": "standard",
            "filter": [
              "lowercase",
              "polish_stop"
            ]
          }
        },
        "filter": {
          "polish_stop": {
            "type": "polish_stop",
            "stopwords": [
              "_polish_",
              "jeść"
            ]
          }
        }
      }
    }
  }
}


{
  "analyzer": "analyzer_with_stop",
  "text": "Gdzie kucharek sześć, tam nie ma co jeść."
}
```

The above request returns:
```json
{
  "tokens" : [
    {
      "token" : "kucharek",
      "start_offset" : 6,
      "end_offset" : 14,
      "type" : "<ALPHANUM>",
      "position" : 1
    },
    {
      "token" : "sześć",
      "start_offset" : 15,
      "end_offset" : 20,
      "type" : "<ALPHANUM>",
      "position" : 2
    }
  ]
}
```