@social-data/social-neuron-user-query 1.0.0-beta.0 → 1.0.0-beta.1
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/manifest.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"additionalProperties": false,
|
|
18
18
|
"properties": {
|
|
19
19
|
"and": {
|
|
20
|
-
"description": "全部满足(编译为 bool.filter)",
|
|
20
|
+
"description": "全部满足(编译为 bool.filter);至少 1 个条件",
|
|
21
21
|
"items": {
|
|
22
22
|
"anyOf": [
|
|
23
23
|
{
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
|
+
"minItems": 1,
|
|
37
38
|
"title": "And",
|
|
38
39
|
"type": "array"
|
|
39
40
|
}
|
|
@@ -300,7 +301,7 @@
|
|
|
300
301
|
"additionalProperties": false,
|
|
301
302
|
"properties": {
|
|
302
303
|
"or": {
|
|
303
|
-
"description": "任一满足(编译为 bool.should + minimum_should_match:1)",
|
|
304
|
+
"description": "任一满足(编译为 bool.should + minimum_should_match:1);至少 1 个条件",
|
|
304
305
|
"items": {
|
|
305
306
|
"anyOf": [
|
|
306
307
|
{
|
|
@@ -317,6 +318,7 @@
|
|
|
317
318
|
}
|
|
318
319
|
]
|
|
319
320
|
},
|
|
321
|
+
"minItems": 1,
|
|
320
322
|
"title": "Or",
|
|
321
323
|
"type": "array"
|
|
322
324
|
}
|
|
@@ -1576,7 +1578,7 @@
|
|
|
1576
1578
|
"additionalProperties": false,
|
|
1577
1579
|
"properties": {
|
|
1578
1580
|
"and": {
|
|
1579
|
-
"description": "全部满足(编译为 bool.filter)",
|
|
1581
|
+
"description": "全部满足(编译为 bool.filter);至少 1 个条件",
|
|
1580
1582
|
"items": {
|
|
1581
1583
|
"anyOf": [
|
|
1582
1584
|
{
|
|
@@ -1593,6 +1595,7 @@
|
|
|
1593
1595
|
}
|
|
1594
1596
|
]
|
|
1595
1597
|
},
|
|
1598
|
+
"minItems": 1,
|
|
1596
1599
|
"title": "And",
|
|
1597
1600
|
"type": "array"
|
|
1598
1601
|
}
|
|
@@ -1711,7 +1714,7 @@
|
|
|
1711
1714
|
"additionalProperties": false,
|
|
1712
1715
|
"properties": {
|
|
1713
1716
|
"or": {
|
|
1714
|
-
"description": "任一满足(编译为 bool.should + minimum_should_match:1)",
|
|
1717
|
+
"description": "任一满足(编译为 bool.should + minimum_should_match:1);至少 1 个条件",
|
|
1715
1718
|
"items": {
|
|
1716
1719
|
"anyOf": [
|
|
1717
1720
|
{
|
|
@@ -1728,6 +1731,7 @@
|
|
|
1728
1731
|
}
|
|
1729
1732
|
]
|
|
1730
1733
|
},
|
|
1734
|
+
"minItems": 1,
|
|
1731
1735
|
"title": "Or",
|
|
1732
1736
|
"type": "array"
|
|
1733
1737
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@social-data/social-neuron-user-query",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Social Neuron user-query 能力 CLI —— 一能力一命令(social-neuron-user-query),薄客户端直达 /user-query/{op}。",
|
|
5
5
|
"bin": {
|
|
6
6
|
"social-neuron-user-query": "bin/cli.js"
|
|
@@ -101,7 +101,7 @@ social-neuron-user-query aggregate --platform user_v4_douyin \
|
|
|
101
101
|
|
|
102
102
|
### 八、取值与边界
|
|
103
103
|
|
|
104
|
-
-
|
|
104
|
+
- 系统**不翻译值**:性别/地域本就是中文明文直接传;**不存在的字段**报错(40416),**不存在的值**不报错、命中 0 条。
|
|
105
105
|
- `search`/`get-user` 一次最多 query_max_size(1000) 条,**不支持翻页**。
|
|
106
106
|
- 只读;部分账号库 helix name_en 可能与真实索引有版本错位,查不到时报索引不存在,联系管理员核对。
|
|
107
107
|
|
|
@@ -170,7 +170,7 @@ social-neuron-user-query aggregate --platform user_v4_douyin \
|
|
|
170
170
|
|
|
171
171
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
172
172
|
|---|---|---|---|---|
|
|
173
|
-
| and | list[AndNode、OrNode、NotNode、Leaf] | 是 |
|
|
173
|
+
| and | list[AndNode、OrNode、NotNode、Leaf] | 是 | minItems=1 | 全部满足(编译为 bool.filter);至少 1 个条件 |
|
|
174
174
|
|
|
175
175
|
**对象 `GroupLevel`** —— 一层分组声明。``group_by`` 递归 = 嵌套子层;缺省 = 本层为叶子(设计 §3.1)。
|
|
176
176
|
|
|
@@ -210,7 +210,7 @@ social-neuron-user-query aggregate --platform user_v4_douyin \
|
|
|
210
210
|
|
|
211
211
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
212
212
|
|---|---|---|---|---|
|
|
213
|
-
| or | list[AndNode、OrNode、NotNode、Leaf] | 是 |
|
|
213
|
+
| or | list[AndNode、OrNode、NotNode、Leaf] | 是 | minItems=1 | 任一满足(编译为 bool.should + minimum_should_match:1);至少 1 个条件 |
|
|
214
214
|
|
|
215
215
|
**出参 `AggregateOutput`**
|
|
216
216
|
|
|
@@ -458,7 +458,7 @@ social-neuron-user-query aggregate --platform user_v4_douyin \
|
|
|
458
458
|
|
|
459
459
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
460
460
|
|---|---|---|---|---|
|
|
461
|
-
| and | list[AndNode、OrNode、NotNode、Leaf] | 是 |
|
|
461
|
+
| and | list[AndNode、OrNode、NotNode、Leaf] | 是 | minItems=1 | 全部满足(编译为 bool.filter);至少 1 个条件 |
|
|
462
462
|
|
|
463
463
|
**对象 `Leaf`** —— 叶子条件 ``{field, op, value}``;value 传 ES 真实值(不翻译)。
|
|
464
464
|
|
|
@@ -478,7 +478,7 @@ social-neuron-user-query aggregate --platform user_v4_douyin \
|
|
|
478
478
|
|
|
479
479
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
480
480
|
|---|---|---|---|---|
|
|
481
|
-
| or | list[AndNode、OrNode、NotNode、Leaf] | 是 |
|
|
481
|
+
| or | list[AndNode、OrNode、NotNode、Leaf] | 是 | minItems=1 | 任一满足(编译为 bool.should + minimum_should_match:1);至少 1 个条件 |
|
|
482
482
|
|
|
483
483
|
**对象 `SortSpec`**
|
|
484
484
|
|