{"id":113943,"date":"2018-02-23T16:55:59","date_gmt":"2018-02-23T16:55:59","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=113943"},"modified":"2018-02-23T16:55:59","modified_gmt":"2018-02-23T16:55:59","slug":"elastic-indexes-akeneo","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/","title":{"rendered":"Elastic indexes in Akeneo"},"content":{"rendered":"<p>Akeneo uses <a href=\"https:\/\/en.wikipedia.org\/wiki\/Elasticsearch\" target=\"_blank\" rel=\"noopener\">elasticsearch<\/a> for saving and searching of product data.<\/p>\n<p>So, whenever Product is created or it&#8217;s attribute values are changed. Akeneo updates corresponding elastic indexes with new value or data.<br \/>\nAkeneo mainly uses three indexes for Product data, Product Model data and Product as Product Model.<\/p>\n<h2>Change elastic indexes names:<\/h2>\n<p>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.<\/p>\n<div>\n<div>\n<pre class=\"brush:css\"># app\/config\/parameters.yml\r\n\r\nparameters:\r\n\u00a0 \u00a0 product_index_name: my_pim_product\r\n\u00a0 \u00a0 product_model_index_name: my_pim_product_model\r\n\u00a0 \u00a0 product_and_product_model_index_name: my_pim_product_and_product_model\r\n\u00a0 \u00a0 index_hosts: 'localhost: 9200'<\/pre>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>Reset elastic indexes:<\/h2>\n<p>Sometimes due to mismatch in elastic indexes. Product count may differ from Listed products or Product Models.<br \/>\nThen, We can reset elasticseach indexes from terminal.<\/p>\n<pre class=\"brush:shell\">$  php bin\/console akeneo:elasticsearch:reset-indexes --env=prod\r\n$  php bin\/console pim:product:index --all --env=prod\r\n$  php bin\/console pim:product-model:index --all --env=prod<\/pre>\n<p>&nbsp;<\/p>\n<p>Another not so cool way to reset elastic indexes would be to run db installer command to <a href=\"https:\/\/webkul.com\/blog\/install-default-dataset-in-akeneo\/\">reset dataset<\/a>. (Not recommended unless you want to reset data as well)<\/p>\n<pre class=\"brush:shell\">$  php bin\/console pim:installer:db --env=prod<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Akeneo uses elasticsearch for saving and searching of product data. So, whenever Product is created or it&#8217;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 <a href=\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":163,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5709],"tags":[3649,6232,6231,2710],"class_list":["post-113943","post","type-post","status-publish","format-standard","hentry","category-akeneo","tag-akeneo","tag-elastic-indexes","tag-elastic-search","tag-symfony"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Elastic indexes in Akeneo - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elastic indexes in Akeneo - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Akeneo uses elasticsearch for saving and searching of product data. So, whenever Product is created or it&#8217;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 [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-23T16:55:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ankit Yadav\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ankit Yadav\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\"},\"author\":{\"name\":\"Ankit Yadav\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/45a97822858619ff05cff6fa033ecea6\"},\"headline\":\"Elastic indexes in Akeneo\",\"datePublished\":\"2018-02-23T16:55:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\"},\"wordCount\":145,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Akeneo\",\"elastic indexes\",\"elastic search\",\"symfony\"],\"articleSection\":[\"Akeneo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\",\"url\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\",\"name\":\"Elastic indexes in Akeneo - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2018-02-23T16:55:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elastic indexes in Akeneo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/45a97822858619ff05cff6fa033ecea6\",\"name\":\"Ankit Yadav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dec576ccbc5f24feae14594b60cc05141ad99a42db37b2a7028a4c49acef2f94?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dec576ccbc5f24feae14594b60cc05141ad99a42db37b2a7028a4c49acef2f94?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ankit Yadav\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/ankit-yadav726\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elastic indexes in Akeneo - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/","og_locale":"en_US","og_type":"article","og_title":"Elastic indexes in Akeneo - Webkul Blog","og_description":"Akeneo uses elasticsearch for saving and searching of product data. So, whenever Product is created or it&#8217;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 [...]","og_url":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-02-23T16:55:59+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Ankit Yadav","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ankit Yadav","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/"},"author":{"name":"Ankit Yadav","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/45a97822858619ff05cff6fa033ecea6"},"headline":"Elastic indexes in Akeneo","datePublished":"2018-02-23T16:55:59+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/"},"wordCount":145,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Akeneo","elastic indexes","elastic search","symfony"],"articleSection":["Akeneo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/","url":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/","name":"Elastic indexes in Akeneo - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2018-02-23T16:55:59+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/elastic-indexes-akeneo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Elastic indexes in Akeneo"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/45a97822858619ff05cff6fa033ecea6","name":"Ankit Yadav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dec576ccbc5f24feae14594b60cc05141ad99a42db37b2a7028a4c49acef2f94?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dec576ccbc5f24feae14594b60cc05141ad99a42db37b2a7028a4c49acef2f94?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ankit Yadav"},"url":"https:\/\/webkul.com\/blog\/author\/ankit-yadav726\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/113943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/163"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=113943"}],"version-history":[{"count":10,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/113943\/revisions"}],"predecessor-version":[{"id":113953,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/113943\/revisions\/113953"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=113943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=113943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=113943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}