Elasticsuite: catalog_product index does not exist yet

Created on 28 Jan 2017  路  10Comments  路  Source: Smile-SA/elasticsuite

Hello,

Thank you for this great work.
We had a website with configurable swatches and simples mixed.
There are about 1 and half million products exists in database (both configurables, childrens and simples).

I have installed module via composer.

After install es and module. An exception thrown on frontend.

catalog_product index does not exist yet
But all indexes are seems ready and there is not any uncompleted database transaction or something like that. screenshot at jan 28 16-44-40 Also checked elasticsearch service by :
curl -i http://localhost:9200/?pretty=true
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 372

{
  "name" : "Sharon Friedlander",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "mGwpLo8JRKOz7L1Z1OPg0A",
  "version" : {
    "number" : "2.4.4",
    "build_hash" : "fcbb46dfd45562a9cf00c604b30849a6dec6b017",
    "build_timestamp" : "2017-01-03T11:33:16Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.2"
  },
  "tagline" : "You Know, for Search"
}

And healthcheck is :

curl -i http://localhost:9200/_cluster/health?pretty=true
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 466

{
  "cluster_name" : "elasticsearch",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 6,
  "active_shards" : 6,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 4,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 60.0
}

The exception is :

Exception #0 (LogicException): catalog_product index does not exist yet. Make sure everything is reindexed
#0 /home/domain/public_html/vendor/smile/elasticsuite/src/module-elasticsuite-catalog-rule/Model/Rule/Condition/Product/AttributeList.php(176):Smile\ElasticsuiteCore\Index\IndexOperation->getIndexByName('catalog_product', Object(Magento\Store\Model\Store\Interceptor))

Most helpful comment

Make sure that your catalog search engine is set to "ElasticSuite"

bin/magento config:store:set catalog/search/engine elasticsuite && bin/magento cache:flush && bin/magento index:reindex

All 10 comments

Hello @rbostan and thank you for testing our extension.

You may need to process a full reindex of the "catalogsearch_fulltext" indexer if you did a fresh install of Elasticsuite.

Could you give it a try and see if it fixes your problem ? Also, we are curious about the time it will take for your catalog to process the full reindex, so can you post here the time it took ?

We keep in touch,

Regards,

@romainruaud I have already processed full reindex on all indexers.
I'll do a full reindex with timer and will inform you about this.

Another minor issue, autocomplete sytling not working. Result takes too long and after, a raw list appears on search input, but no styles or thumbnails etc. Fyi.

I'll try latest development branch (currently 2.4 i think).
Becuase we are using Magento 2.1.2 and latest commits may be fix our performance and other related issues.

We'll see.
;)

The error has gone. I don't know why, but gone :)
Autocomplete issue continuing, no styles, seems like renderers can not be applied.
Dropdown just has multiple

<li class="" id="qs-option-1" role="option"><span class="qs-option-name"> Keyword</span><span aria-hidden="true" class="amount"></span></li>

any update about this one @rbostan ? Are you still facing the issue ?

@romainruaud
Nope, styling issue is related with our current theme, not module.
You may close this, thanks.

Hi I am facing this issue in Magento2 EE

'Exception #0 (LogicException): catalog_product index does not exist yet. Make sure everything is reindexed'

This is the error am getting. Even though all the index are indexed.
I have installed the 'ICU' and 'Phonetic' plugins also.

catalog_product index does not exist yet. Make sure everything is reindexed

a:4:{i:0;s:75:"catalog_product index does not exist yet. Make sure everything is reindexed";i:1;s:8304:"#0 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCore/Search/Request/ContainerConfiguration.php(161): SmileElasticsuiteCoreIndexIndexOperation->getIndexByName('catalog_product', 1)

1 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCore/Search/Request/ContainerConfiguration.php(94): SmileElasticsuiteCoreSearchRequestContainerConfiguration->getIndex()

2 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCore/Search/Request/Builder.php(150): SmileElasticsuiteCoreSearchRequestContainerConfiguration->getIndexName()

3 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection.php(583): SmileElasticsuiteCoreSearchRequestBuilder->create(1, 'catalog_view_co...', 0, 0, NULL, Array, Array, Array, Array)

4 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection.php(189): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection->loadProductCounts()

5 /Applications/AMPPS/www/testsssports/var/generation/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection/Interceptor.php(24): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection->getSize()

6 /Applications/AMPPS/www/testsssports/vendor/magento/framework/Data/Collection.php(259): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollectionInterceptor->getSize()

7 /Applications/AMPPS/www/testsssports/var/generation/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection/Interceptor.php(1610): MagentoFrameworkDataCollection->getLastPageNumber()

8 /Applications/AMPPS/www/testsssports/vendor/magento/framework/Data/Collection.php(245): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollectionInterceptor->getLastPageNumber()

9 /Applications/AMPPS/www/testsssports/var/generation/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection/Interceptor.php(1597): MagentoFrameworkDataCollection->getCurPage(0)

10 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection.php(484): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollectionInterceptor->getCurPage()

11 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection.php(393): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection->prepareRequest()

12 /Applications/AMPPS/www/testsssports/vendor/magento/framework/Data/Collection/AbstractDb.php(338): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection->_renderFiltersBefore()

13 /Applications/AMPPS/www/testsssports/app/code/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection.php(430): MagentoFrameworkDataCollectionAbstractDb->_renderFilters()

14 /Applications/AMPPS/www/testsssports/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(906): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection->_renderFilters()

15 /Applications/AMPPS/www/testsssports/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(727): MagentoEavModelEntityCollectionAbstractCollection->load(false, false)

16 /Applications/AMPPS/www/testsssports/vendor/magento/framework/Interception/Interceptor.php(146): MagentoCatalogModelResourceModelProductCollection->load(false, false)

17 /Applications/AMPPS/www/testsssports/var/generation/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection/Interceptor.php(377): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollectionInterceptor->___callPlugins('load', Array, Array)

18 /Applications/AMPPS/www/testsssports/vendor/magento/framework/Data/Collection.php(820): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollectionInterceptor->load()

19 /Applications/AMPPS/www/testsssports/var/generation/Smile/ElasticsuiteCatalog/Model/ResourceModel/Product/Fulltext/Collection/Interceptor.php(1844): MagentoFrameworkDataCollection->getIterator()

20 /Applications/AMPPS/www/testsssports/vendor/magento/module-catalog/Block/Product/ListProduct.php(321): SmileElasticsuiteCatalogModelResourceModelProductFulltextCollectionInterceptor->getIterator()

21 /Applications/AMPPS/www/testsssports/var/generation/Magento/Catalog/Block/Product/ListProduct/Interceptor.php(154): MagentoCatalogBlockProductListProduct->getIdentities()

22 /Applications/AMPPS/www/testsssports/vendor/magento/module-page-cache/Model/Layout/LayoutPlugin.php(71): MagentoCatalogBlockProductListProductInterceptor->getIdentities()

23 /Applications/AMPPS/www/testsssports/vendor/magento/framework/Interception/Interceptor.php(152): MagentoPageCacheModelLayoutLayoutPlugin->afterGetOutput(Object(MagentoFrameworkViewLayoutInterceptor), '