Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
In QueryString cannot use [fields] parameter in conjunction with [default_field] #1352
In QueryString cannot use anymore [fields] parameter in conjunction with [default_field]. There was a test failing because of an exception : QueryValidationException
After having a look a the docs on Es6 Breaking changes I did not find anything reporting this BC, the only way to check it is having a look at Elasticsearch 6.0+ source code.
I also implement a test to check for that Exception.
Aug 17, 2017
The problem seems that the Exception return query_validation_exception not in the same position of the array. Instead of using assertEquals and validate the value of a specific position $error['failed_shards']['reason']['caused_by']['type'] I tried assertContains; like that seem to work. Waiting for tests to execute on Travis :)