nucliadb 6.6.1.post4584__py3-none-any.whl → 6.6.1.post4590__py3-none-any.whl
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.
- nucliadb/ingest/orm/processor/pgcatalog.py +7 -2
- {nucliadb-6.6.1.post4584.dist-info → nucliadb-6.6.1.post4590.dist-info}/METADATA +6 -6
- {nucliadb-6.6.1.post4584.dist-info → nucliadb-6.6.1.post4590.dist-info}/RECORD +6 -6
- {nucliadb-6.6.1.post4584.dist-info → nucliadb-6.6.1.post4590.dist-info}/WHEEL +0 -0
- {nucliadb-6.6.1.post4584.dist-info → nucliadb-6.6.1.post4590.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.6.1.post4584.dist-info → nucliadb-6.6.1.post4590.dist-info}/top_level.txt +0 -0
@@ -65,6 +65,11 @@ async def pgcatalog_update(txn: Transaction, kbid: str, resource: Resource, inde
|
|
65
65
|
modified_at = created_at
|
66
66
|
|
67
67
|
async with _pg_transaction(txn).connection.cursor() as cur:
|
68
|
+
# Labels from the resource and classification labels from each field
|
69
|
+
labels = [label for label in index_message.labels]
|
70
|
+
for field in index_message.texts.values():
|
71
|
+
labels += [label for label in field.labels if label.startswith("/l/")]
|
72
|
+
|
68
73
|
await cur.execute(
|
69
74
|
"""
|
70
75
|
INSERT INTO catalog
|
@@ -83,7 +88,7 @@ async def pgcatalog_update(txn: Transaction, kbid: str, resource: Resource, inde
|
|
83
88
|
"title": resource.basic.title,
|
84
89
|
"created_at": created_at,
|
85
90
|
"modified_at": modified_at,
|
86
|
-
"labels":
|
91
|
+
"labels": labels,
|
87
92
|
"slug": resource.basic.slug,
|
88
93
|
},
|
89
94
|
)
|
@@ -99,7 +104,7 @@ async def pgcatalog_update(txn: Transaction, kbid: str, resource: Resource, inde
|
|
99
104
|
{
|
100
105
|
"kbid": resource.kb.kbid,
|
101
106
|
"rid": resource.uuid,
|
102
|
-
"facets": list(extract_facets(
|
107
|
+
"facets": list(extract_facets(labels)),
|
103
108
|
},
|
104
109
|
)
|
105
110
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.6.1.
|
3
|
+
Version: 6.6.1.post4590
|
4
4
|
Summary: NucliaDB
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
@@ -19,11 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
20
20
|
Requires-Python: <4,>=3.9
|
21
21
|
Description-Content-Type: text/markdown
|
22
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.6.1.
|
23
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.6.1.
|
24
|
-
Requires-Dist: nucliadb-protos>=6.6.1.
|
25
|
-
Requires-Dist: nucliadb-models>=6.6.1.
|
26
|
-
Requires-Dist: nidx-protos>=6.6.1.
|
22
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.6.1.post4590
|
23
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.6.1.post4590
|
24
|
+
Requires-Dist: nucliadb-protos>=6.6.1.post4590
|
25
|
+
Requires-Dist: nucliadb-models>=6.6.1.post4590
|
26
|
+
Requires-Dist: nidx-protos>=6.6.1.post4590
|
27
27
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
28
28
|
Requires-Dist: nuclia-models>=0.43.0
|
29
29
|
Requires-Dist: uvicorn[standard]
|
@@ -167,7 +167,7 @@ nucliadb/ingest/orm/utils.py,sha256=fCQRuyecgqhaY7mcBG93oaXMkzkKb9BFjOcy4-ZiSNw,
|
|
167
167
|
nucliadb/ingest/orm/processor/__init__.py,sha256=Aqd9wCNTvggkMkCY3WvoI8spdr94Jnqk-0iq9XpLs18,922
|
168
168
|
nucliadb/ingest/orm/processor/auditing.py,sha256=TeYhXGJRyQ7ROytbb2u8R0fIh_FYi3HgTu3S1ribY3U,4623
|
169
169
|
nucliadb/ingest/orm/processor/data_augmentation.py,sha256=v-pj4GbBWSuO8dQyahs5UDr5ghsyfhCZDS0ftKd6ZYc,5179
|
170
|
-
nucliadb/ingest/orm/processor/pgcatalog.py,sha256=
|
170
|
+
nucliadb/ingest/orm/processor/pgcatalog.py,sha256=jyUn9D7tPES1f8FQqiL8kjzS4puWbgv-bqorP_PEt_A,4251
|
171
171
|
nucliadb/ingest/orm/processor/processor.py,sha256=jaEBwbv--WyoC8zcdxWAyF0dAzVA5crVDJl56Bqv1eI,31444
|
172
172
|
nucliadb/ingest/orm/processor/sequence_manager.py,sha256=uqEphtI1Ir_yk9jRl2gPf7BlzzXWovbARY5MNZSBI_8,1704
|
173
173
|
nucliadb/ingest/service/__init__.py,sha256=LHQFUkdmNBOWqBG0Md9sMMI7g5TQZ-hLAnhw6ZblrJg,2002
|
@@ -375,8 +375,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
375
375
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
376
376
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
377
377
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
378
|
-
nucliadb-6.6.1.
|
379
|
-
nucliadb-6.6.1.
|
380
|
-
nucliadb-6.6.1.
|
381
|
-
nucliadb-6.6.1.
|
382
|
-
nucliadb-6.6.1.
|
378
|
+
nucliadb-6.6.1.post4590.dist-info/METADATA,sha256=Qlvlg1L0sRe2pMcr6yvh9Wq27fSWSereEoun2EcPs2U,4158
|
379
|
+
nucliadb-6.6.1.post4590.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
380
|
+
nucliadb-6.6.1.post4590.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
381
|
+
nucliadb-6.6.1.post4590.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
382
|
+
nucliadb-6.6.1.post4590.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|