mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-13 15:22:57 +00:00
move tantivy-py installation to be separate from wheel (#97)
pypi does not allow packages to be uploaded that has a direct reference for now we'll just ask the user to install tantivy separately --------- Co-authored-by: Chang She <chang@lancedb.com>
This commit is contained in:
@@ -16,7 +16,13 @@ import os
|
||||
from typing import List, Tuple
|
||||
|
||||
import pyarrow as pa
|
||||
import tantivy
|
||||
|
||||
try:
|
||||
import tantivy
|
||||
except ImportError:
|
||||
raise ImportError(
|
||||
"Please install tantivy-py `pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985` to use the full text search feature."
|
||||
)
|
||||
|
||||
from .table import LanceTable
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ class LanceFtsQueryBuilder(LanceQueryBuilder):
|
||||
import tantivy
|
||||
except ImportError:
|
||||
raise ImportError(
|
||||
"You need to install the `lancedb[fts]` extra to use this method."
|
||||
"Please install tantivy-py `pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985` to use the full text search feature."
|
||||
)
|
||||
|
||||
from .fts import search_index
|
||||
|
||||
Reference in New Issue
Block a user