feat: Update full-text index name to include workspace label for better context
This commit is contained in:
parent
5f53de8866
commit
dfb51d2391
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ class Neo4JStorage(BaseGraphStorage):
|
||||||
self, driver: AsyncDriver, database: str, workspace_label: str
|
self, driver: AsyncDriver, database: str, workspace_label: str
|
||||||
):
|
):
|
||||||
"""Create a full-text index on the entity_id property with Chinese tokenizer support."""
|
"""Create a full-text index on the entity_id property with Chinese tokenizer support."""
|
||||||
index_name = "entity_id_fulltext_idx"
|
index_name = f"entity_id_fulltext_idx_{workspace_label}"
|
||||||
try:
|
try:
|
||||||
async with driver.session(database=database) as session:
|
async with driver.session(database=database) as session:
|
||||||
# Check if the full-text index exists and get its configuration
|
# Check if the full-text index exists and get its configuration
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue