omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

how to refer to field.keyword when using ElasticaAdapter #308

Closed geniuspegasus closed 9 months ago

geniuspegasus commented 11 months ago

please how to refer to field.keyword when using ElasticaAdapter.

When I use the code below, it throws me an error. mois_paye contains data like 6/2023

$table = $this->createDataTable() ->add("mois_paye.keyword", TextColumn::class) ->createAdapter(ElasticaAdapter::class, [ 'client' => ['host' => 'localhost', 'port' => 9200], ]) ->handleRequest($request); error https://i.stack.imgur.com/fSp7t.png

I need to use keyword (mois_paye.keyword) to make search available on attribute.

Thank you

github-actions[bot] commented 9 months ago

Stale issue message