Request: Better example of how to use negation with query_string
See original GitHub issueI’ve been trying to write a filter where I negate a large portion of the potential results AND match the remaining results by looking for a particular string, but I can’t seem to get it to work unless I do this all within a query_string. This is fine for now, but I would like to use more complicated queries in the future and avoid using a 100 character plus long query for readability.
I did notice that none of the examples in the docs seem to combine the two, so is this just not supported at all?
The latest iteration of my attempt at getting this to work is this:
filter:
- and:
- query:
query_string:
query: "fooBarBaz"
- not:
- term:
someField: "badValue"
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
REST API Design Best Practices for Parameter and Query ...
There are many ways in HTTP to add parameters to our request: the query string, the body of POST, PUT and PATCH requests,...
Read more >Is using a query string in POST request a bad practice?
Is it a bad practice to use query strings for POST requests, and if there any negative consequences of using that from security...
Read more >Request.QueryString Collection - Microsoft Learn
The QueryString collection retrieves the values of the variables in the HTTP query string. The HTTP query string is specified by the values ......
Read more >REST API Best Practices for Parameter and Query String Usage
The most common APIs employ HTTP requests to access and use data and ... Array and Map Parameters; When Should the Query String...
Read more >query-string - npm
Install. npm install query-string. Not npm install querystring !!!!! For browser usage, this package targets ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
how to use multiple comparision in single line