You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is regarding previous issue mentioned here : #125
I was able to reproduce this using following testcases.
Note : All function ie mustRaw, sortRaw ignore the condition prior to using those function.
Testcases you provided are working as expected since mustRaw is before must
Hi, @rohitjalmi90, the idea of mustRaw and similar functions is to allow you to provide the entire must clause in a single call, it completely replaces the "must" clause of the query. When you invoke mustRaw you tell the builder to replace "must" with the provided queries, when you call must you tell it to add a query to the "must" clause. This is why you can call mustRaw and then must, but not vice versa.
If you want to add just one raw query to the list, you can change your code to:
Hello @babenkoivan,
Thank you for awesome package :)
This is regarding previous issue mentioned here : #125
I was able to reproduce this using following testcases.
Note : All function ie mustRaw, sortRaw ignore the condition prior to using those function.
Testcases you provided are working as expected since mustRaw is before must
Testcase
Output : Failed
Query formed :
{"bool":{"must":{"term":{"year":2019}},"filter":[{"term":{"__soft_deleted":0}}]}}
Package version :
The text was updated successfully, but these errors were encountered: