Using stempel as a main analyzer in ES index


(Marcin Oleszkiewicz) #1

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')
    )
  )
)

)


(system) #2