Skip to content

Commit 6634e48

Browse files
committed
Update schema store index
1 parent cc30a2c commit 6634e48

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

deploy_ai_search/text_2_sql_schema_store.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def get_index_fields(self) -> list[SearchableField]:
155155
],
156156
),
157157
SimpleField(
158-
name="CompleteEntityRelationshipGraph",
158+
name="CompleteEntityRelationshipsGraph",
159159
type=SearchFieldDataType.String,
160160
collection=True,
161161
),
@@ -270,6 +270,14 @@ def get_indexer(self) -> SearchIndexer:
270270
source_field_name="/document/EntityName",
271271
target_field_name="EntityName",
272272
),
273+
FieldMapping(
274+
source_field_name="/document/Database",
275+
target_field_name="Database",
276+
),
277+
FieldMapping(
278+
source_field_name="/document/Warehouse",
279+
target_field_name="Warehouse",
280+
),
273281
FieldMapping(
274282
source_field_name="/document/Definition",
275283
target_field_name="Definition",
@@ -291,12 +299,12 @@ def get_indexer(self) -> SearchIndexer:
291299
target_field_name="ColumnDefinitions",
292300
),
293301
FieldMapping(
294-
source_field_name="/document/ImmediateEntityRelationships",
295-
target_field_name="ImmediateEntityRelationships",
302+
source_field_name="/document/EntityRelationships",
303+
target_field_name="EntityRelationships",
296304
),
297305
FieldMapping(
298-
source_field_name="/document/CompleteEntityRelationships",
299-
target_field_name="CompleteEntityRelationships",
306+
source_field_name="/document/CompleteEntityRelationshipsGraph",
307+
target_field_name="CompleteEntityRelationshipsGraph",
300308
),
301309
FieldMapping(
302310
source_field_name="/document/DateLastModified",

0 commit comments

Comments
 (0)