Skip to content

Commit a7bd45e

Browse files
committed
fix index param
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
1 parent 4f81a17 commit a7bd45e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/python/tests/weekly/test_weekly.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def create_or_load_dataset(dataset_name: str, kwargs: dict):
8282
try:
8383
ds.create_scalar_index(
8484
"text",
85-
index_type="FTS",
85+
index_type="INVERTED",
8686
with_position=kwargs.get("with_position", False),
8787
replace=True,
8888
)
@@ -153,7 +153,7 @@ def __init__(self, filter: Optional[str] = None):
153153
self.filter = filter
154154

155155
def run(self, ds: lance.LanceDataset):
156-
stats = ds.index_stats("vector_idx")
156+
stats = ds.index_statistics("vector_idx")
157157
if stats is None:
158158
print("No vector index found")
159159
return
@@ -174,7 +174,7 @@ def __init__(self, has_position: bool, filter: Optional[str] = None):
174174
self.filter = filter
175175

176176
def run(self, ds: lance.LanceDataset):
177-
stats = ds.index_stats("text_idx")
177+
stats = ds.index_statistics("text_idx")
178178
if stats is None:
179179
print("No text index found")
180180
return

0 commit comments

Comments
 (0)