Skip to content

FieldStatistics.cs class has int values but can get from indexes long values #4578

Closed
@guille11gg

Description

@guille11gg

NEST/Elasticsearch.Net version: 7.6.1

Elasticsearch version: 6.8

Description of the problem including expected versus actual behavior:
A clear and concise description of what the bug is.
This class is getting integers in all their properties: https://github.com/elastic/elasticsearch-net/blob/master/src/Nest/Document/Single/TermVectors/FieldStatistics.cs
Can be the case, when you do a termVectors query, those number are bigger than an integer (long).

Steps to reproduce:

  1. Query to termVectors: POST https://host/index/_mtermvectors
  2. An exception is triggered: "Unhandled exception when processing list: efefdb47-0aaf-4244-9c96-7e971cba3c46. - Elasticsearch.Net.UnexpectedElasticsearchClientException: JSON integer 2320738168 is too large or small for an Int32. Path 'docs[0].term_vectors.abstractFull.field_statistics.sum_ttf'

Expected behavior
Be able to map all properties.

Provide ConnectionSettings (if relevant):

Provide DebugInformation (if relevant):

Metadata

Metadata

Assignees

No one assigned

    Labels

    7.xRelates to a 7.x client version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions