elastic / search-application-client

Apache License 2.0
4 stars 4 forks source link

Fix query builder setting wrong parameter #32

Closed timgrein closed 1 year ago

timgrein commented 1 year ago

Probably related to https://github.com/elastic/search-application-client/issues/29

Current behavior: every query returns exactly the same result.

According to the 8.10 docs (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-search.html) you need to use query_string as parameter and not query. Search applications actually don't throw an error, but simply return a result, which you'll get if you query without any parameters.