Elasticsearch-net: NEST swallows part of an aggregation value

Created on 14 Apr 2020  路  4Comments  路  Source: elastic/elasticsearch-net

NEST/Elasticsearch.Net version: 6.8.1

Elasticsearch version: 6.7

I have a filter aggregation where one of the values in the response is "ff3046ce-e547-46b6-8ffb-44832bd8c2ad c# .net".
When I read that response with NEST it says the value is " .net". That is, it swallows the first part of the value for some reason.

This seems to be related to https://github.com/elastic/elasticsearch-net/blob/master/src/Nest/Aggregations/AggregateDictionary.cs#L16-L34 which I see is used in the serializer https://github.com/elastic/elasticsearch-net/blob/master/src/Nest/Aggregations/AggregateDictionaryFormatter.cs#L31 to handle the typed_keys parameter, but regardless of what this is set to in the request, this serializer seems to behave the same?
Are there any workarounds? Can this serializer be overriden somehow?

Thanks

EDIT: I'm using NEST 6.x here but the code I'm linking to is still in master so i'm pretty sure this still happens in the latest versions of NEST.

6.x 7.x bug

All 4 comments

Hey @mausch are you able capture the response with DebugInformation() on connectionsettings and share it with us.

Would help us to create a repro faster. Thanks!

Thanks @mausch, opened https://github.com/elastic/elasticsearch-net/pull/4656 to address

We just released a patch to our 6.x clients:

https://github.com/elastic/elasticsearch-net/releases/tag/6.8.6

This should have the parser fix, thanks again for bringing this to our attention @mausch

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ngonzalezromero picture ngonzalezromero  路  4Comments

hatem1975 picture hatem1975  路  3Comments

russcam picture russcam  路  3Comments

foleta-developers picture foleta-developers  路  5Comments

alwag85 picture alwag85  路  5Comments