Yii2 provides an elastic search extension and also elastic search ActiveRecord class.
This elastic search extension seams to read the data from elastic by querying the _source
field of elastic search, which is not ideal.
If fields in elastic are set to "store" :true
it would be the better way to read the data from the stored field directly, not by querying the _source
field which results in an implicit parsing of that field by elastic.
Is there a way to configure or use Yii2 / elaticsearch - extension to get the data from the stored fields? I didn't found any option or something else here: https://www.yiiframework.com/extension/yiisoft/yii2-elasticsearch/doc/api/2.1/yii-elasticsearch-activerecord