esquery icon indicating copy to clipboard operation
esquery copied to clipboard

Support query string query

Open mooijtech opened this issue 3 years ago • 3 comments

Hello, Would it be possible to support a query string query with required must fields? References: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

mooijtech avatar Mar 01 '22 09:03 mooijtech

This would be amazing!

Prounckk avatar May 06 '22 15:05 Prounckk

+1

Isan-Rivkin avatar Aug 05 '22 12:08 Isan-Rivkin

You could use CustomQuery

	queryString := map[string]interface{}{
		"query_string": map[string]interface{}{
			"query":            "(new york city) OR (big apple)",
			"analyze_wildcard": true,
		},
	}

	esquery.CustomQuery(queryString)

tuziben avatar May 10 '24 13:05 tuziben