Comments (4)
Hi @deMD,
This behavior is defined in the specification and we refer to it as a "single or many" construct. For example: BoolQuery. While I agree that this is strange API design, there is not much I can do from my side (client). It might be the case, that in this particular place, an array with just a single element is accepted by the server, but that's not always the case.
Just a quick question:
I'm aware that there is no easy way to read the values stored in a descriptor and that even for regular request objects some values are inaccessible. I assume this is the reason you are trying to verify the query based on the JSON output?
from elasticsearch-net.
Ah too bad then. I'll make sure to have a nice workaround in our test suite for it then.
Yeah that is the reason we check the output. We are currently in the progress of upgrading from NEST to the new client, and want to make sure the requests to the server remain the same. The easiest way to do that is using VerifyTests and then comparing the json output just makes the most sense. A lot less hassle then coming up with a way to use reflection to do it.
from elasticsearch-net.
That's an interesting approach! Let me know if you encounter other discrepancies 🙂
from elasticsearch-net.
Will do! :)
from elasticsearch-net.
Related Issues (20)
- Incorrect query in example documentation
- Decay functions missing HOT 10
- Missing UpdateAsync(...) overload in ElasticsearchClient HOT 3
- In the fluent index mapping using the Keyword property descriptor lambda method for a list of strings throws an exception
- ExtendedBounds missing from DateHistogramAggregationDescriptor<TDocument> HOT 1
- Unable to perform knn query [knn] unknown field [k HOT 7
- Dictionary exception in BucketsPathConverter HOT 5
- Elasticsearch.Net.UnexpectedElasticsearchClientException: Failed to serialize anonymous type when writting to NLog HOT 3
- Missing && operator between aggregations HOT 5
- Another Elastic.Transport.UnexpectedTransportException with Ingest.GetPipelineAsync HOT 2
- Reintroduce convenience where appropriate HOT 4
- Default index is not used in query with 8.13.8 client HOT 5
- Missing Public Constructor on Type Elastic.Clients.Elasticsearch.Fields HOT 2
- SumAggregation missing ctor HOT 7
- BulkAll does not honor [JsonIgnore] attribute HOT 2
- GeoPoint Serialization Helper HOT 3
- MultiGetAsync does not infer default mapping for index HOT 4
- Support for (alternative for) GeoShapeQuery HOT 2
- After/AfterKey dictionary types in Composite Aggregation/Aggregate HOT 1
- 8.13.10 lacks UpdateMany<TSource, TPartialDocument>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-net.