unscipreneur / e2ebridge Goto Github PK
View Code? Open in Web Editor NEWRead the Ethereum Blockchain into Elasticsearch
Read the Ethereum Blockchain into Elasticsearch
Hi!
Elastic 6 deprecated the types of documents within an index: https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
So now if you create mappings, you will get an error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [ethereum] as the final mapping would have more than 1 type: [block, transaction]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [ethereum] as the final mapping would have more than 1 type: [block, transaction]"},"status":400}
It is not possible to index blocks and transactions since they have BigInt fields such as difficulty
, totalDifficulty
, value
, etc. Currently elasticsearch does not support this data type https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html. Which is why indexing fails:
response: '{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [totalDifficulty]"}],"type":"mapper_parsing_exception","reason":"failed to parse [totalDifficulty]","caused_by":{"type":"json_parse_exception","reason":"Numeric value (9239341261939642000) out of range of long (-9223372036854775808 - 9223372036854775807)\\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@3fe7a0b2; line: 1, column: 1333]"}},"status":400}',
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.