Creating a new index

eDaddi

Active member
Licensed customer
Looking to add a new index with data from a non-XF table. Can I load elasticsearch with XF's code and create a new index?
 
You can use \XFES\Listener::getElasticsearchApi to get an instance of \XFES\Elasticsearch\Api, which has a createIndex method.
 
Back
Top Bottom