Yii2, ElasticSearch, ActiveRecord and Geo Distance Filter

Hi, I’m using yiisoft/yii2-elasticsearch with Borales/yii2-elasticsearch-behavior and want to filter my search index using Geo Distance Filter but am having a few problems.

Firstly, the Yii2 elasticsearch extension (in particular its yii\elasticsearch\ActiveRecord implementation) doesn’t seem to allow specifying mapping types such as Geo Point Type. How are people going about this?

Secondly, I’m specifying relational db yii\db\ActiveRecord to ElasticSearch yii\elasticsearch\ActiveRecord mapping via Borales/yii2-elasticsearch-behavior which doesn’t seem to support nested objects/types. How are people achieving this?

Cheers :)