appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.9k stars 466 forks source link

customQuery too restrictive #311

Closed ArpiJakab closed 6 years ago

ArpiJakab commented 6 years ago

Enhancement:

Web:

I want to pass in my own raw Elastic query without any additional ReactiveSearch wrapping. Currently the query is prewrapped with unwanted restrictions "{"query":{"bool":{"must":[{"bool":{"must":[MY CUSTOM QUERY]}}]}}

Screenshots:

DataController w/ customQuery and look at the HTTP request sent in search:

Reactivesearch version: v2

Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Anything else:

ArpiJakab commented 6 years ago

I figured out that ReactiveComponent can send an undecorated query.