question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

search_phase_execution_exception when using ElasticSearchPlugin

See original GitHub issue

Describe the bug When searching for products using ElasticSearch, we are getting a search_phase_execution_exception. This happens in de query that fetches the FacetValues, the query to actually fetch the products seems to work just fine.

{ 
	"query": {
		"bool": { 
			"filter": [
				{"term":{"channelId":1}},
				{"term":{"languageCode":"en"}}
			]
		}
	},
	"sort":[],
	"from":0,
	"size":0,
	"aggs": {
		"facetValue":
			{"terms":{"field":"facetValueIds","size":50}}
	}
}

To Reproduce Setup Vendure dev server with the ElasticSearchPlugin, populate, reindex, run a search query that requests the FacetValues:

query {
  search (input: {}) {
    facetValues {
      facetValue {
        id
      }
    }
  }
}

Environment (please complete the following information):

  • @vendure/core version: 0.16.2
  • Database: sqljs and mysql (others not tested)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
hendrik-advantitgecommented, Nov 5, 2020

Thank you very much Michael, this has indeed resolved the issue for me!

1reaction
michaelbromleycommented, Nov 6, 2020

Deleting an index is something you can do via the Elasticsearch API directly: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html

It is analogous to “dropping a database” in an SQL DB. I’m not familiar with AWS Elasticsearch so I don’t know if they have soe dashboard-based way of deleting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

search failed due to SearchPhaseExecutionException. Will ...
A detailed guide on how to resolve errors related to "search failed due to SearchPhaseExecutionException. Will attempt again with new scroll"
Read more >
SearchPhaseExecutionException[Failed to execute phase ...
I checked logstash setup in debug mode and it is sending data to Elastic Search. now all my created windows report this error:...
Read more >
Kibana elasticsearch plugin goes red
We are using readonlyrest Enterprise, and, sometimes, elasticsearch plugin for kibana goes to red, after several minutes goes back to green.
Read more >
Oops! SearchPhaseExecutionException[Failed to execute ...
History: I have been testing ELK stack for a few months now off and on. For months now I have had it logging...
Read more >
Source of ElasticsearchPlugin.scala - clowder - Bitbucket
{SearchPhaseExecutionException, SearchResponse, SearchType}. 22. import org.elasticsearch.client.transport.NoNodeAvailableException.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found