How to define index method in elasticsearch in yii2?

345 views Asked by At

I am using filters in Elasticsearch in yii2, I want to have an exact match to a field for example item_name="tshirt", so I want to define an index for this field as 'not_analyzed', how do I define index in yii2-elasticsearch?

1

There are 1 answers

0
Ankit Vishwakarma On

You can override index() method in your search model.