You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
I have a document with _source as below: where the field: float-test is float data type
From the Search result, the value of "float-test" become 0 as it rounded and lost precision, as below:
var result = client.Search(s => s
.Index(index)
.Size(1000)
.QueryOnQueryString("keyID:93bdb772e5d84732bb7f877cae0210a6")
);
Expected behavior
How could i retain the exact value (0.25881904510252074) when read out from search result? Im using dynamic object for Index and Search.
The text was updated successfully, but these errors were encountered:
Hi @leelcs, this bug has been fixed in #4655 and will be in the next 7.x release, which we expect to put out in the very near future.
If it's a show stopper currently, you could reference a canary nuget package from our CI nuget feed which has the fix in. I just tested with version 7.6.0-ci20200430T143815 in Linqpad
Alternatively, if you were to define a type to deserialize _source into, where "float-test" is a double property type, that would also work without needing to reference a canary package. A POCO would look something like
thanks @russcam for your immediate response! the copy in canary package fixed the issue.
Meanwhile, i will wait for the official next release. Thank you.
NEST/Elasticsearch.Net version:
NEST 7.6.1
NEST.JsonNetSerializer : 7.6.1
Elasticsearch version: 7.3.1
Description of the problem including expected versus actual behavior:
I have a document with _source as below: where the field: float-test is float data type
_source": {
"float-test": 0.25881904510252074,
"keyID": "93bdb772e5d84732bb7f877cae0210a6"
"version": "1.0"
}
From the Search result, the value of "float-test" become 0 as it rounded and lost precision, as below:
var result = client.Search(s => s
.Index(index)
.Size(1000)
.QueryOnQueryString("keyID:93bdb772e5d84732bb7f877cae0210a6")
);
Expected behavior
How could i retain the exact value (0.25881904510252074) when read out from search result? Im using dynamic object for Index and Search.
The text was updated successfully, but these errors were encountered: