From 17a195f8e95b41e38ee7e8ec5ba234d8b6c51825 Mon Sep 17 00:00:00 2001 From: Ankit raj <113342181+ankit-v2-3@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:59:14 +0530 Subject: [PATCH] fix: index type --- videodb/__init__.py | 2 +- videodb/search.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/videodb/__init__.py b/videodb/__init__.py index 67a04e4..9fe49ab 100644 --- a/videodb/__init__.py +++ b/videodb/__init__.py @@ -16,7 +16,7 @@ logger: logging.Logger = logging.getLogger("videodb") -__version__ = "0.0.3" +__version__ = "0.0.4" __author__ = "videodb" __all__ = [ diff --git a/videodb/search.py b/videodb/search.py index c42eea3..49db816 100644 --- a/videodb/search.py +++ b/videodb/search.py @@ -116,7 +116,7 @@ def search_inside_video( search_data = self._connection.post( path=f"{ApiPath.video}/{video_id}/{ApiPath.search}", data={ - "type": SearchType.semantic, + "index_type": SearchType.semantic, "query": query, "score_threshold": score_threshold or SemanticSearchDefaultValues.score_threshold, @@ -137,7 +137,7 @@ def search_inside_collection( search_data = self._connection.post( path=f"{ApiPath.collection}/{collection_id}/{ApiPath.search}", data={ - "type": SearchType.semantic, + "index_type": SearchType.semantic, "query": query, "score_threshold": score_threshold or SemanticSearchDefaultValues.score_threshold, @@ -164,7 +164,7 @@ def search_inside_video( search_data = self._connection.post( path=f"{ApiPath.video}/{video_id}/{ApiPath.search}", data={ - "type": SearchType.keyword, + "index_type": SearchType.keyword, "query": query, "score_threshold": score_threshold, "result_threshold": result_threshold,