opensearch-docs-cn/_clients
David Alpert (Next League) ca40c6191c
demonstrate fluent queries to exclude fields with empty values (#4579)
a `TermQuery` with an empty string `Value` is considered by the .NET client to be "conditionless" and is removed from the search request body by default.

for those times that you want to use a `TermQuery` with an empty string `Value` (e.g. show me all documents with a non-empty last_name property) you need to use the `.Verbatim()` method to tell the client library to include the `TermQuery` as written even though it is considered to be "conditionless".

in other words, while a "conditionless" query may not make sense in the positive it can make sense in the negative

```
GET /my-index/_search
{
     "query": {
        "bool": {
          "must": [{
            "exists": { "field": "last_name"}
          }],
          "must_not": [{
            "term": {"last_name.keyword": { "value": "" }}
          }]
        }
      },
}
```

Signed-off-by: David Alpert (Next League) <112503249+david-alpert-nl@users.noreply.github.com>
2023-07-18 10:08:56 -07:00
..
javascript Update version and add link to examples - Javascript client (#4224) 2023-06-06 15:50:47 -07:00
OSC-dot-net.md demonstrate fluent queries to exclude fields with empty values (#4579) 2023-07-18 10:08:56 -07:00
OSC-example.md Adds Rust client documentation (#2342) 2023-01-10 13:49:15 -05:00
OpenSearch-dot-net.md Add notice about pre-release (#3428) 2023-05-17 12:56:24 -05:00
dot-net-conventions.md Adds Rust client documentation (#2342) 2023-01-10 13:49:15 -05:00
dot-net.md Adds Ruby client documentation (#1018) 2022-09-08 09:38:26 -04:00
go.md Addd examples on how to connect with Sigv4 for AOS and AOSS (#3250) 2023-03-09 09:47:18 -05:00
index.md Adds collections landing page configuration and navigation header linking (#3812) 2023-05-11 13:56:08 -04:00
java-rest-high-level.md More redirects and spelling fixes (#4093) 2023-05-17 09:57:14 -07:00
java.md Fix RestClientTransport code snippets (#4149) 2023-05-23 12:49:19 -04:00
opensearch-py-ml.md fixtypo (#4075) 2023-05-15 11:23:23 -05:00
php.md Addd examples on how to connect with Sigv4 for AOS and AOSS (#3250) 2023-03-09 09:47:18 -05:00
python-high-level.md Add deprecation warning to high-level python client (#3007) 2023-02-21 11:45:06 -05:00
python-low-level.md Small fixes and redirects (#4002) 2023-05-04 17:47:17 -04:00
ruby.md Fix links for link checker (#4309) 2023-06-13 15:06:50 -04:00
rust.md Addd examples on how to connect with Sigv4 for AOS and AOSS (#3250) 2023-03-09 09:47:18 -05:00