VeggieMeat / search_api_elasticsearch

Clone of project at drupal.org/project/search_api_elasticsearch for better CI options than what D.O offers
16 stars 8 forks source link

SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures #11

Closed VeggieMeat closed 10 years ago

VeggieMeat commented 10 years ago

Original issue: https://www.drupal.org/node/2267577

After installation indexing is happening as expected but when trying to do a search on a page via search_api_pages I get the following error

Elastica\Exception\ResponseException: SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[wZCuKYmeRgOu5PWeott-Ow][elasticsearch_index_dma7_default_node_index][0]: SearchParseException[[elasticsearch_index_dma7_default_node_index][0]: query[(title:test | field_custom_date_display:test | search_api_viewed:test | body:value:test | field_search_keywords:name:test)],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":"10","query":{"query_string":{"query":"("test")","fields":["title","field_custom_date_display","search_api_viewed","body:value","field_search_keywords:name"],"analyzer":"snowball"}},"facets":{"field_exhibition_date:value":{"date_histogram":{"interval":"month","time_zone":"UTC","factor":1000,"field":"field_exhibition_date:value"}},"type":{"terms":{"all_terms":false,"field":"type","size":50}},"author":{"terms":{"all_terms":false,"field":"author","size":50}}}}]]]; nested: ClassCastException; }{[wZCuKYmeRgOu5PWeott-Ow][elasticsearch_index_dma7_default_node_index][1]: SearchParseException[[elasticsearch_index_dma7_default_node_index][1]: query[(title:test | field_custom_date_display:test | search_api_viewed:test | body:value:test | field_search_keywords:name:test)],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":"10","query":{"query_string":{"query":"("test")","fields":["title","field_custom_date_display","search_api_viewed","body:value","field_search_keywords:name"],"analyzer":"snowball"}},"facets":{"field_exhibition_date:value":{"date_histogram":{"interval":"month","time_zone":"UTC","factor":1000,"field":"field_exhibition_date:value"}},"type":{"terms":{"all_terms":false,"field":"type","size":50}},"author":{"terms":{"all_terms":false,"field":"author","size":50}}}}]]]; nested: ClassCastException; }{[wZCuKYmeRgOu5PWeott-Ow][elasticsearch_index_dma7_default_node_index][2]: SearchParseException[[elasticsearch_index_dma7_default_node_index][2]: query[(title:test | field_custom_date_display:test | search_api_viewed:test | body:value:test | field_search_keywords:name:test)],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":"10","query":{"query_string":{"query":"("test")","fields":["title","field_custom_date_display","search_api_viewed","body:value","field_search_keywords:name"],"analyzer":"snowball"}},"facets":{"field_exhibition_date:value":{"date_histogram":{"interval":"month","time_zone":"UTC","factor":1000,"field":"field_exhibition_date:value"}},"type":{"terms":{"all_terms":false,"field":"type","size":50}},"author":{"terms":{"all_terms":false,"field":"author","size":50}}}}]]]; nested: ClassCastException; }{[wZCuKYmeRgOu5PWeott-Ow][elasticsearch_index_dma7_default_node_index][3]: SearchParseException[[elasticsearch_index_dma7_default_node_index][3]: query[(title:test | field_custom_date_display:test | search_api_viewed:test | body:value:test | field_search_keywords:name:test)],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":"10","query":{"query_string":{"query":"("test")","fields":["title","field_custom_date_display","search_api_viewed","body:value","field_search_keywords:name"],"analyzer":"snowball"}},"facets":{"field_exhibition_date:value":{"date_histogram":{"interval":"month","time_zone":"UTC","factor":1000,"field":"field_exhibition_date:value"}},"type":{"terms":{"all_terms":false,"field":"type","size":50}},"author":{"terms":{"all_terms":false,"field":"author","size":50}}}}]]]; nested: ClassCastException; }{[wZCuKYmeRgOu5PWeott-Ow][elasticsearch_index_dma7_default_node_index][4]: SearchParseException[[elasticsearch_index_dma7_default_node_index][4]: query[(title:test | field_custom_date_display:test | search_api_viewed:test | body:value:test | field_search_keywords:name:test)],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":"10","query":{"query_string":{"query":"("test")","fields":["title","field_custom_date_display","search_api_viewed","body:value","field_search_keywords:name"],"analyzer":"snowball"}},"facets":{"field_exhibition_date:value":{"date_histogram":{"interval":"month","time_zone":"UTC","factor":1000,"field":"field_exhibition_date:value"}},"type":{"terms":{"all_terms":false,"field":"type","size":50}},"author":{"terms":{"all_terms":false,"field":"author","size":50}}}}]]]; nested: ClassCastException; }] in Elastica\Transport\Http->exec() (line 142 of /var/www/dma.org-d7/sites/all/libraries/Elastica/lib/Elastica/Transport/Http.php).