Reading list Switch to dark mode

    Elastic indexes in Akeneo

    Updated 23 February 2018

    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
        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.

    Searching for an experienced
    Akeneo Company ?
    Find out More
    $  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


    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home