question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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):

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
russcamcommented, May 7, 2020

@guille11gg 7.6.2 is now released to nuget with this fix: https://www.nuget.org/packages/NEST/7.6.2

0reactions
russcamcommented, May 7, 2020

hi @guille11gg, I’m looking at putting a new 7.x release out today

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I check that a sequence of indices of type int ...
If I have a collection of Column objects, I am looking for a way to test if their indices are contiguous. By contiguous...
Read more >
Indexes: integer vs string performance if the number of ...
Short answer: integer is faster than varchar or text in every aspect. Won't matter much for small tables and / or short keys....
Read more >
Calculate Geometry Attributes (Data Management)—ArcGIS Pro
Count attributes are written to long integer fields; area, length, and x-, y-, z-coordinate, and m-value attributes are written to double fields; and...
Read more >
T
ziplib is a Zip, GZip, Tar and BZip2 library written entirely in C# for the . ... <param name="offset">The index to start extracting...
Read more >
AP Computer Science A Java Quick Reference - AP Central
Accessible methods from the Java library that may be included in the exam. Class ... Constructs a new Integer object that represents the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found