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
If we query with "key_string" : "1.2.121" and "data_int" : 15, this record will be returned. This behavior is not desired.
To fix this, we need to store account_auths_object as nested type but not automatically (by the default dynamic mapping rules) as object. It means we need to specify our own explicit mappings.
And there are more fields. The most complex case is multi-level nested proposals, although most of them were malformed unexpectedly.
The challenges are
specify explicit mapping rules when creating new indexes (because we create a new index every month)
when replaying, we don't need to create or update mappings, but need to check whether an index exists already
perhaps use dynamic templates to handle multi-level proposals (I think we can use it to handle normal fields too).
Impacts
Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.
API (the application programming interface)
Build (the build process or something prior to compiled code)
CLI (the command line wallet)
Deployment (the deployment process after building such as Docker, Travis, etc.)
DEX (the Decentralized EXchange, market engine, etc.)
P2P (the peer-to-peer network for transaction/block propagation)
Performance (system or user efficiency, etc.)
Protocol (the blockchain logic, consensus, validation, etc.)
Security (the security of system or user data, etc.)
UX (the User Experience)
Other (please add below)
CORE TEAM TASK LIST
Evaluate / Prioritize Feature Request
Refine User Stories / Requirements
Define Test Cases
Design / Develop Solution
Perform QA/Testing
Update Documentation
The text was updated successfully, but these errors were encountered:
User Story
Object arrays stored in ES are flattened by default (see https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html).
For example, for
account_auths
in account history object with ID2.9.671969
, the original input wasAfter processed by our code in ES plugin (#2565), it becomes
But in ES it got flattened as
Screenshot:
If we query with
"key_string" : "1.2.121" and "data_int" : 15
, this record will be returned. This behavior is not desired.To fix this, we need to store
account_auths_object
asnested
type but not automatically (by the default dynamic mapping rules) asobject
. It means we need to specify our own explicit mappings.And there are more fields. The most complex case is multi-level nested proposals, although most of them were malformed unexpectedly.
The challenges are
Impacts
Describe which portion(s) of BitShares Core may be impacted by your request. Please tick at least one box.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: