Request Quote

Elastic indexes in Akeneo

Akeneo uses elasticsearch for saving and searching of product data.

So, whenever Product is created or it’s attribute values are changed. Akeneo updates corresponding elastic indexes with new value or data.
Akeneo mainly uses three indexes for Product data, Product Model data and Product as Product Model.

Change elastic indexes names:

We can specify name of Elasticsearch indexes where these data will be stored in Elasticsearch cluster. This is quite useful when you have different akeneo instances running on same Elasticsearch.

# app/config/parameters.yml

parameters:
    product_index_name: my_pim_product
    product_model_index_name: my_pim_product_model
    product_and_product_model_index_name: my_pim_product_and_product_model
    index_hosts: 'localhost: 9200'

 

Reset elastic indexes:

Sometimes due to mismatch in elastic indexes. Product count may differ from Listed products or Product Models.
Then, We can reset elasticseach indexes from terminal.

$  php bin/console akeneo:elasticsearch:reset-indexes --env=prod
$  php bin/console pim:product:index --all --env=prod
$  php bin/console pim:product-model:index --all --env=prod

 

Another not so cool way to reset elastic indexes would be to run db installer command to reset dataset. (Not recommended unless you want to reset data as well)

$  php bin/console pim:installer:db --env=prod

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close