Skip to content

Commit 2509967

Browse files
committed
Readded deprecation warning
1 parent e773de4 commit 2509967

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/neo4j_graphrag/neo4j_queries.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515
from __future__ import annotations
1616

17+
import warnings
1718
from typing import Any, Optional
1819

1920
from neo4j_graphrag.filters import get_metadata_filter
@@ -232,6 +233,11 @@ def get_search_query(
232233
Exception: If Vector Search with filters is missing required parameters.
233234
ValueError: If an unsupported search type is provided.
234235
"""
236+
warnings.warn(
237+
"The default returned 'id' field in the search results will be removed. Please switch to using 'elementId' instead.",
238+
DeprecationWarning,
239+
stacklevel=2,
240+
)
235241
if entity_type == EntityType.NODE:
236242
if search_type == SearchType.HYBRID:
237243
if filters:

0 commit comments

Comments
 (0)