Elasticsearch Query String Query | Escaping double quotes


I am finding difficulties in searching over characters like double quotes using query string query.

I have indexed a single document with the default standard analyzer.

	"key" : "  \" "

My search query is :

{"from" : 0, "size" : 20,  "query": {
    "bool": {"should": [{
          "query_string": {
            "query":" \" ",
				}	}
			],"minimum_should_match":1}},"highlight": {
        "type" : "unified",
        "fields": {
            "*": { 

This leads to "search_phase_execution_exception".
Even though I have parsed the double quotes in my query using backslash, I am not able to parse it correctly. I can only use query string query and not go with any other queries.
Am I missing something here?


Read this and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.