Skip to content

Instantly share code, notes, and snippets.

@ktopouzi
Last active February 24, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktopouzi/b2db29a5bb3878a8ea17d9a000bd48c1 to your computer and use it in GitHub Desktop.
Save ktopouzi/b2db29a5bb3878a8ea17d9a000bd48c1 to your computer and use it in GitHub Desktop.
Can not connect the vue-storefront-api / ElasticSearch instance! Error: {"root_cause":[{"type":"query_shard_exception","reason":"failed to create query:
{
\"bool\" : {
\"filter\" : [
{
\"bool\" : {
\"must\" : [
{
\"terms\" : {
\"attribute_code\" : [
\"media_gallery_entries\",
\"meta_title\",
\"weight\",
\"extension_attributes\",
\"meta_description\",
\"custom_options\",
\"meta_keyword\",
\"swatch_image\",
\"original_price_tax\",
\"originalPrice\",
\"originalPriceTax\",
\"originalPriceInclTax\",
\"specialPrice\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_user_defined\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_visible\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}","index_uuid":"PqmRr3uOQYKs2NrrSt5ajQ","index":"vue_storefront_catalog_attribute_1582548721"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"vue_storefront_catalog_attribute_1582548721","node":"cmcm8KlgQlWrARaXfjgFdA","reason":{"type":"query_shard_exception","reason":"failed to create query: {
\"bool\" : {
\"filter\" : [
{
\"bool\" : {
\"must\" : [
{
\"terms\" : {
\"attribute_code\" : [
\"media_gallery_entries\",
\"meta_title\",
\"weight\",
\"extension_attributes\",
\"meta_description\",
\"custom_options\",
\"meta_keyword\",
\"swatch_image\",
\"original_price_tax\",
\"originalPrice\",
\"originalPriceTax\",
\"originalPriceInclTax\",
\"specialPrice\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_user_defined\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_visible\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}","index_uuid":"PqmRr3uOQYKs2NrrSt5ajQ","index":"vue_storefront_catalog_attribute_1582548721","caused_by":{"type":"illegal_argument_exception","reason":"Can't parse boolean value [1], expected [true] or [false]"}}}]}
at SearchAdapter.exports.modules../core/lib/search/adapter/api/searchAdapter.ts.SearchAdapter.handleResult (vsf-search-adapter-0.server-bundle.js:548:23)
at Object.resultProcessor (vsf-search-adapter-0.server-bundle.js:583:30)
at server-bundle.js:3183:92
at process._tickCallback (internal/process/next_tick.js:68:7)
Error during render : /temaxia/-7/-36.html?childSku=tmx-soutzoukaki
Error: Error: {"root_cause":[{"type":"query_shard_exception","reason":"failed to create query: {
\"bool\" : {
\"filter\" : [
{
\"bool\" : {
\"must\" : [
{
\"terms\" : {
\"attribute_code\" : [
\"media_gallery_entries\",
\"meta_title\",
\"weight\",
\"extension_attributes\",
\"meta_description\",
\"custom_options\",
\"meta_keyword\",
\"swatch_image\",
\"original_price_tax\",
\"originalPrice\",
\"originalPriceTax\",
\"originalPriceInclTax\",
\"specialPrice\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_user_defined\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_visible\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}","index_uuid":"PqmRr3uOQYKs2NrrSt5ajQ","index":"vue_storefront_catalog_attribute_1582548721"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"vue_storefront_catalog_attribute_1582548721","node":"cmcm8KlgQlWrARaXfjgFdA","reason":{"type":"query_shard_exception","reason":"failed to create query: {
\"bool\" : {
\"filter\" : [
{
\"bool\" : {
\"must\" : [
{
\"terms\" : {
\"attribute_code\" : [
\"media_gallery_entries\",
\"meta_title\",
\"weight\",
\"extension_attributes\",
\"meta_description\",
\"custom_options\",
\"meta_keyword\",
\"swatch_image\",
\"original_price_tax\",
\"originalPrice\",
\"originalPriceTax\",
\"originalPriceInclTax\",
\"specialPrice\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_user_defined\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
},
{
\"terms\" : {
\"is_visible\" : [
true,
\"1\"
],
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}
],
\"adjust_pure_negative\" : true,
\"boost\" : 1.0
}
}","index_uuid":"PqmRr3uOQYKs2NrrSt5ajQ","index":"vue_storefront_catalog_attribute_1582548721","caused_by":{"type":"illegal_argument_exception","reason":"Can't parse boolean value [1], expected [true] or [false]"}}}]}
at SearchAdapter.exports.modules../core/lib/search/adapter/api/searchAdapter.ts.SearchAdapter.handleResult (core/lib/search/adapter/api/searchAdapter.ts:106:14)
at Object.resultProcessor (core/lib/search/adapter/api/searchAdapter.ts:141:20)
at server-bundle.js:3183:92
at process._tickCallback (internal/process/next_tick.js:68:7)
at _commonErrorHandler (core/server-entry.ts:18:11)
at server-bundle.js:17954:41
at process._tickCallback (internal/process/next_tick.js:68:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment