vue-storefront: Products not displayed on storefront (Home/Catalog etc).

Product not displayed on storefront (Home/Catalog etc).

Issues with retrieve catalog of products from ES on storefront. See illegal_argument_exception in chrome console.

2017-10-20_22-36-16

Error: {"root_cause":[{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [created_at] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"vue_storefront_catalog","node":"7NJgUxmQTLSF-IFOLsGdaw","reason":{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [created_at] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}}]}

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 19

Most upvoted comments

@dimasch still the same error (about created_at)? I used the opposite sequence: ‘’’ npm run restore npm run migrate ‘’’

But it shouldn’t make any difference. But maybe it does?😉

As for now you can change the elastic query in Home.vue to disable sorting by created_at field

Newer nodejs doesn’t make difference here

Does mage2nosql works for you?