feat: Update full-text index name to include workspace label for better context

This commit is contained in:
palanisd 2025-11-22 04:02:41 -05:00 committed by GitHub
parent 5f53de8866
commit dfb51d2391
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -230,7 +230,7 @@ class Neo4JStorage(BaseGraphStorage):
self, driver: AsyncDriver, database: str, workspace_label: str
):
"""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:
async with driver.session(database=database) as session:
# Check if the full-text index exists and get its configuration