# Using stempel as a main analyzer in ES index

**URL:** <https://discuss.elastic.co/t/using-stempel-as-a-main-analyzer-in-es-index/8339>\
**Category:** Elasticsearch\
**Created:** [July 6, 2012, 1:11pm UTC](https://discuss.elastic.co/t/using-stempel-as-a-main-analyzer-in-es-index/8339 "2012-07-06T13:11:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Oleszkiewicz](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Marcin\_Oleszkiewicz](https://discuss.elastic.co/u/Marcin_Oleszkiewicz)\
**Post date:** [July 6, 2012, 1:11pm UTC](https://discuss.elastic.co/t/using-stempel-as-a-main-analyzer-in-es-index/8339/1 "2012-07-06T13:11:36Z")

</div>

how should I declare index creation If I want to use Stempel as a main  
language analyzer (Polish)

my curent index is created like this (PHP) because I want "-" not to be  
treated as delimiter, I need analyzer

```
      $index->create(
                array(
'number_of_shards' => 4,
'number_of_replicas' => 1,
'analysis' => array(
  'analyzer' => array(
    'default' => array(
      'type' => 'custom',
      'tokenizer' => 'whitespace',
      'filter' => 'my_filter'
    )
  ),
  'filter' => array(
    'my_filter' => array(
      'type' => 'word_delimiter',
      'preserve_original' => '1',
      'type_table'=>array('-'=> 'ALPHANUM')
    )
  )
)

```

)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:21am UTC](https://discuss.elastic.co/t/using-stempel-as-a-main-analyzer-in-es-index/8339/2 "2017-07-06T03:21:16Z")

</div>


