How to get Elasticsearch Index Prefix value Magento 2?

Elasticsearch Index Prefix parameter used to the indexing of search term prefixes to speed up prefix searches on a website.

You can set Elasticsearch Index Prefix from the admin panel

Settings -> Configuration -> Catalog -> Catalog -> Catalog Search -> Elasticsearch Index Prefix.

Out of the box, the default value is the magento2.