Skip to content

Commit 17a195f

Browse files
committed
fix: index type
1 parent 62ac735 commit 17a195f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

videodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
logger: logging.Logger = logging.getLogger("videodb")
1818

19-
__version__ = "0.0.3"
19+
__version__ = "0.0.4"
2020
__author__ = "videodb"
2121

2222
__all__ = [

videodb/search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def search_inside_video(
116116
search_data = self._connection.post(
117117
path=f"{ApiPath.video}/{video_id}/{ApiPath.search}",
118118
data={
119-
"type": SearchType.semantic,
119+
"index_type": SearchType.semantic,
120120
"query": query,
121121
"score_threshold": score_threshold
122122
or SemanticSearchDefaultValues.score_threshold,
@@ -137,7 +137,7 @@ def search_inside_collection(
137137
search_data = self._connection.post(
138138
path=f"{ApiPath.collection}/{collection_id}/{ApiPath.search}",
139139
data={
140-
"type": SearchType.semantic,
140+
"index_type": SearchType.semantic,
141141
"query": query,
142142
"score_threshold": score_threshold
143143
or SemanticSearchDefaultValues.score_threshold,
@@ -164,7 +164,7 @@ def search_inside_video(
164164
search_data = self._connection.post(
165165
path=f"{ApiPath.video}/{video_id}/{ApiPath.search}",
166166
data={
167-
"type": SearchType.keyword,
167+
"index_type": SearchType.keyword,
168168
"query": query,
169169
"score_threshold": score_threshold,
170170
"result_threshold": result_threshold,

0 commit comments

Comments
 (0)