@ocap/indexdb-elasticsearch 1.14.2 → 1.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/db.js +8 -1
- package/lib/model/asset.js +13 -1
- package/package.json +5 -5
package/lib/db.js
CHANGED
|
@@ -456,7 +456,14 @@ class ESIndexDB extends BaseIndexDB {
|
|
|
456
456
|
conditions.push({
|
|
457
457
|
nested: {
|
|
458
458
|
path: 'foreignToken',
|
|
459
|
-
query: {
|
|
459
|
+
query: {
|
|
460
|
+
bool: {
|
|
461
|
+
should: [
|
|
462
|
+
{ match: { 'foreignToken.contractAddress': toChecksumAddress(foreignTokenAddr) } },
|
|
463
|
+
{ match: { 'foreignToken.contractAddress': foreignTokenAddr.toLowerCase() } },
|
|
464
|
+
],
|
|
465
|
+
},
|
|
466
|
+
},
|
|
460
467
|
},
|
|
461
468
|
});
|
|
462
469
|
}
|
package/lib/model/asset.js
CHANGED
|
@@ -7,7 +7,6 @@ module.exports = () => ({
|
|
|
7
7
|
genesisTime: { type: 'date' },
|
|
8
8
|
renaissanceTime: { type: 'date' },
|
|
9
9
|
data: { type: 'object', enabled: false },
|
|
10
|
-
stake: { type: 'object', enabled: false },
|
|
11
10
|
issuer: { type: 'keyword' },
|
|
12
11
|
moniker: { type: 'text' },
|
|
13
12
|
owner: { type: 'keyword' },
|
|
@@ -15,6 +14,19 @@ module.exports = () => ({
|
|
|
15
14
|
readonly: { type: 'boolean' },
|
|
16
15
|
transferrable: { type: 'boolean' },
|
|
17
16
|
ttl: { type: 'long' },
|
|
17
|
+
display: {
|
|
18
|
+
properties: {
|
|
19
|
+
type: { type: 'keyword' },
|
|
20
|
+
content: { type: 'text', index: false },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
endpoint: {
|
|
24
|
+
properties: {
|
|
25
|
+
id: { type: 'text', index: false },
|
|
26
|
+
type: { type: 'keyword' },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
tags: { type: 'text' },
|
|
18
30
|
},
|
|
19
31
|
},
|
|
20
32
|
settings: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/indexdb-elasticsearch",
|
|
3
3
|
"description": "OCAP indexdb adapter that uses elasticsearch as backend",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.6",
|
|
5
5
|
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/ArcBlock/asset-chain/issues",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"test": "jest --forceExit --detectOpenHandles",
|
|
39
39
|
"coverage": "npm run test -- --coverage"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "dd379a7d1bd2a46be27a29e6f0c65fa161ec0b0c",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did": "1.14.
|
|
43
|
+
"@arcblock/did": "1.14.6",
|
|
44
44
|
"@elastic/elasticsearch": "7.13.0",
|
|
45
|
-
"@ocap/indexdb": "1.14.
|
|
46
|
-
"@ocap/util": "1.14.
|
|
45
|
+
"@ocap/indexdb": "1.14.6",
|
|
46
|
+
"@ocap/util": "1.14.6",
|
|
47
47
|
"axios": "^0.21.4",
|
|
48
48
|
"bn.js": "^5.2.0",
|
|
49
49
|
"debug": "^4.3.2",
|