Elastica\Exception\PartialShardFailureException

Get helpful answers from community members using Rubedo 2.x

Elastica\Exception\PartialShardFailureException

Postby avladykin » Wed Dec 17, 2014 6:43 am

Hello all!

I've installed Rubedo, last stable version 2.2.0. But search on the site and backoffice is not working. It sends such error on any query:

Elastica\Exception\PartialShardFailureException
File:
/var/www/rubedo/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php:149
Message:
1
Stack trace:
#0 /var/www/rubedo/vendor/ruflin/elastica/lib/Elastica/Request.php(168): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)
#1 /var/www/rubedo/vendor/ruflin/elastica/lib/Elastica/Client.php(592): Elastica\Request->send()
...

What's wrong? Please help!!! I do all installation with instruction on: https://rubedo.atlassian.net/wiki/pages ... Id=6193154

I try to debug code and saw that we send such code to elasticsearch with curl post ($content in /vendor/ruflin/elastica/lib/Elastica/Transport/Http.php):
{"query":{"query_string":{"query":"test","fields":["all_ru","all_nonlocalized"]}},"filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"facets":{"objectType":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"terms":{"field":"objectType","size":1000,"order":"count"}},"type":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"terms":{"field":"contentType","size":1000,"order":"count"}},"damType":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"terms":{"field":"damType","size":1000,"order":"count"}},"userType":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"terms":{"field":"userType","size":1000,"order":"count"}},"author":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"terms":{"field":"createUser.id","size":5,"order":"count"}},"lastupdatetime":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"range":{"field":"lastUpdateTime","ranges":[{"from":"1418677200000"},{"from":"1418158800000"},{"from":"1416171600000"},{"from":"1387224000000"}]}},"navigation":{"facet_filter":{"and":[{"and":[{"or":[{"term":{"online":true}},{"missing":{"field":"online","existence":true,"null_value":true}}]},{"or":[{"missing":{"field":"startPublicationDate","existence":true,"null_value":true}},{"term":{"startPublicationDate":0}},{"numeric_range":{"startPublicationDate":{"to":1418790833}}}]},{"or":[{"missing":{"field":"endPublicationDate","existence":true,"null_value":true}},{"term":{"endPublicationDate":0}},{"numeric_range":{"endPublicationDate":{"from":1418790833}}}]}]},{"terms":{"availableLanguages":["ru"]}}]},"terms":{"field":"taxonomy.navigation","size":20,"order":"count"}}},"size":10,"from":0,"sort":{"_score":{"order":"desc","ignore_unmapped":true}},"fields":["*"]}

and receive from ElasticSearch ($responseString):
{"took":42,"timed_out":false,"_shards":{"total":3,"successful":2,"failed":1,"failures":[{"index":"rubedo-users","shard":0,"status":400,"reason":"SearchParseException[[rubedo-users][0]: query[(all_ru:test | all_nonlocalized:test)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"query_string\":{\"query\":\"test\",\"fields\":[\"all_ru\",\"all_nonlocalized\"]}},\"filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"facets\":{\"objectType\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"terms\":{\"field\":\"objectType\",\"size\":1000,\"order\":\"count\"}},\"type\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"terms\":{\"field\":\"contentType\",\"size\":1000,\"order\":\"count\"}},\"damType\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"terms\":{\"field\":\"damType\",\"size\":1000,\"order\":\"count\"}},\"userType\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"terms\":{\"field\":\"userType\",\"size\":1000,\"order\":\"count\"}},\"author\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"terms\":{\"field\":\"createUser.id\",\"size\":5,\"order\":\"count\"}},\"lastupdatetime\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"range\":{\"field\":\"lastUpdateTime\",\"ranges\":[{\"from\":\"1418677200000\"},{\"from\":\"1418158800000\"},{\"from\":\"1416171600000\"},{\"from\":\"1387224000000\"}]}},\"navigation\":{\"facet_filter\":{\"and\":[{\"and\":[{\"or\":[{\"term\":{\"online\":true}},{\"missing\":{\"field\":\"online\",\"existence\":true,\"null_value\":true}}]},{\"or\":[{\"missing\":{\"field\":\"startPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"startPublicationDate\":0}},{\"numeric_range\":{\"startPublicationDate\":{\"to\":1418790994}}}]},{\"or\":[{\"missing\":{\"field\":\"endPublicationDate\",\"existence\":true,\"null_value\":true}},{\"term\":{\"endPublicationDate\":0}},{\"numeric_range\":{\"endPublicationDate\":{\"from\":1418790994}}}]}]},{\"terms\":{\"availableLanguages\":[\"ru\"]}}]},\"terms\":{\"field\":\"taxonomy.navigation\",\"size\":20,\"order\":\"count\"}}},\"size\":10,\"from\":0,\"sort\":{\"_score\":{\"order\":\"desc\",\"ignore_unmapped\":true}},\"fields\":[\"*\"]}]]]; nested: QueryParsingException[[rubedo-users] failed to find mapping for field [startPublicationDate]]; "}]},"hits":{"total":0,"max_score":null,"hits":[]},"facets":{"objectType":{"_type":"terms","missing":0,"total":0,"other":0,"terms":[]},"type":{"_type":"terms","missing":0,"total":0,"other":0,"terms":[]},"damType":{"_type":"terms","missing":0,"total":0,"other":0,"terms":[]},"userType":{"_type":"terms","missing":0,"total":0,"other":0,"terms":[]},"author":{"_type":"terms","missing":0,"total":0,"other":0,"terms":[]},"lastupdatetime":{"_type":"range","ranges":[{"from":1.4186772E12,"from_str":"1418677200000","count":0,"total_count":0,"total":0.0,"mean":0.0},{"from":1.4181588E12,"from_str":"1418158800000","count":0,"total_count":0,"total":0.0,"mean":0.0},{"from":1.4161716E12,"from_str":"1416171600000","count":0,"total_count":0,"total":0.0,"mean":0.0},{"from":1.387224E12,"from_str":"1387224000000","count":0,"total_count":0,"total":0.0,"mean":0.0}]},"navigation":{"_type":"terms","missing":0,"total":0,"other":0,"terms":[]}}}
avladykin
New member
 
Posts: 2
Joined: Wed Dec 17, 2014 6:29 am

Re: Elastica\Exception\PartialShardFailureException

Postby dfanchon » Wed Dec 17, 2014 11:15 am

Hi avladykin,

Did you tried to index your content ? Administration > Monitoring > Index everything

If it's not working please provide your elasticsearch version.

Didier
dfanchon
WebTales
 
Posts: 117
Joined: Fri Apr 26, 2013 10:18 am

Re: Elastica\Exception\PartialShardFailureException

Postby avladykin » Wed Dec 17, 2014 5:57 pm

it's works! Thank you very much!
avladykin
New member
 
Posts: 2
Joined: Wed Dec 17, 2014 6:29 am


Return to Rubedo V2 : Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron