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) <[email protected]>
* Adds collections landing page configuration and navigation header linking
Signed-off-by: Aaron Stephanus <[email protected]>
* Removes unnecessary collection property from the configuration.
Signed-off-by: Aaron Stephanus <[email protected]>
* Adds links to navigation collection headers to collection index pages based on the collection name
Signed-off-by: Aaron Stephanus <[email protected]>
* Hide index pages from view and add info to formatting guide
Signed-off-by: Fanit Kolchina <[email protected]>
---------
Signed-off-by: Aaron Stephanus <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Co-authored-by: Fanit Kolchina <[email protected]>
* Add CI with link checker.
Signed-off-by: dblock <[email protected]>
* Capture URI::InvalidURIError.
Signed-off-by: dblock <[email protected]>
* Use HEAD and catch URI errors.
Signed-off-by: dblock <[email protected]>
* Retry on a 405 with a GET.
Signed-off-by: dblock <[email protected]>
* Replaced external link checker with ruby-link-checker.
Signed-off-by: dblock <[email protected]>
* Don't exit with an exception.
Signed-off-by: dblock <[email protected]>
* Run internal link checker on build/ci.
Signed-off-by: dblock <[email protected]>
* Added broken links issue template.
Signed-off-by: dblock <[email protected]>
* Added host exclusions that 404 or fail on bots.
Signed-off-by: dblock <[email protected]>
* Raise anyway because Jekyll does it for us.
Signed-off-by: dblock <[email protected]>
* Fix broken links.
Signed-off-by: dblock <[email protected]>
* Only run link checker on main.
Signed-off-by: dblock <[email protected]>
* Re-add check-links.sh.
Signed-off-by: dblock <[email protected]>
* Run once a day on cron.
Signed-off-by: dblock <[email protected]>
---------
Signed-off-by: dblock <[email protected]>
Please double-check that this is correct. I'm using `org.opensearch.client:opensearch-java:2.2.0` and `org.opensearch.client:opensearch-rest-client:2.5.0` to try to create a client as per the docs. I noticed that the call to `IndexRequest.Builder.value()` does not work. I believe the correct method name is ``IndexRequest.Builder.document()`