Stemmer via PHP api

(Sylwester Harkot) #1

I can setup analysis using hunspell or stempel for polish language and check it via curl and "_analyze" - it's ok.
But "_search" don't use base form of words.
When i send query via PHP-api, elastic return result which means that no dictionary/stemmer was used.

Can anyone send me piece of code to setup index and quering elastic via php-api to force using dictionary/stemmer?

(system) #2