-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[FEATURE] Support bool query operators in Query DSL #6556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sjg-ep. Operators for combining queries are currently a missing feature. The intention is to re-introduce these during the beta phase. |
Has this been added yet? Is there an estimation for it's availability? |
I am also wonder when this will be available. We relay heavily on them and can not upgrade without it. |
Same issues here. I'm also confused because a Are there examples of how I can use multiple What is the proper way to convert a |
@svenhartmann The various query types have implicit conversion operators to |
I don't have an ETA I can share for when this feature will be reintroduced. |
@stevejgordon Thanks for the fast anwser! I didn´t realized cast at |
@svenhartmann No, you won't be able to the var queries = new List<Query> { new TermQuery("a-field") { Value = "a-value" }, new TermQuery("a-field") { Value = "b-value" } }; |
@stevejgordon Thanks for the hint. Did it like var terms = filters
.Select(x =>
{
return Query.Terms(new TermsQuery
{
Field = "myField", Terms = new TermsQueryField(x.Values.Select(FieldValue.String).ToArray())
});
})
.ToArray(); and then created a simple BoolQuery with a With the NEST Client i used a list of terms queries and |
I've broken this issue into two units of work which we will address separately. I'll close out this issue as we'll track progress in the new issues. |
Elastic.Clients.Elasticsearch version:
8.0.0-beta.1
Elasticsearch version:
8.3.2
.NET runtime version:
6.0.300
Operating system version:
NixOS 22.05
Description of the problem including expected versus actual behavior:
The operators described on this page appear to be missing.
https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/bool-queries.html
Expected behavior
I expected them to be provided, eventually. Unless for some reason they are no longer intended to be supported?
The text was updated successfully, but these errors were encountered: