Menu Close
    Searching for an experienced Akeneo Development Company ?

    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

     

    . . .
    Discuss on Helpdesk

    Leave a Comment

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


    Be the first to comment.

    Back to Top