Skip to content
Snippets Groups Projects
Unverified Commit 5ed04065 authored by Tomaz Bratanic's avatar Tomaz Bratanic Committed by GitHub
Browse files

Fix Neo4jVector handling when multiple indexes are present in the db (#10749)

parent 75bc663e
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ def sort_by_index_name( ...@@ -25,7 +25,7 @@ def sort_by_index_name(
lst: List[Dict[str, Any]], index_name: str lst: List[Dict[str, Any]], index_name: str
) -> List[Dict[str, Any]]: ) -> List[Dict[str, Any]]:
"""Sort first element to match the index_name if exists.""" """Sort first element to match the index_name if exists."""
return sorted(lst, key=lambda x: x.get("index_name") != index_name) return sorted(lst, key=lambda x: x.get("name") != index_name)
def clean_params(params: List[BaseNode]) -> List[Dict[str, Any]]: def clean_params(params: List[BaseNode]) -> List[Dict[str, Any]]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment