Skip to content

Conversation

@hunyoboy
Copy link
Contributor

@hunyoboy hunyoboy commented Dec 14, 2018

The bug is caused by casting the value to string when it is a number. ElasticSearch expects a type of long and value is reformatted to some exponential format like this "1.5666E.. " This happens during the construction of query for ElasticSearch. Current solution is to ensure that string casting only happens on instance of Numbr class.

CHANGELOG-0.x.md Outdated
This changelog references the relevant changes done in 0.x versions.

## v0.3.1
* (patch) issue #288: cannot search nodes using any time field
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hunyoboy this is reference an issue from a different repository. just change it to something like * BUG :: Fix invalid string casting on Numbr in ElasticaQueryBuilder.

@hunyoboy
Copy link
Contributor Author

@gdbrown Please review at your convenience. Thank you.

@gdbrown gdbrown merged commit 785b669 into master Dec 14, 2018
@gdbrown gdbrown deleted the 288-cannot-search-nodes-by-timefield branch December 14, 2018 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants