mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-06 20:02:58 +00:00
chore(python): use pypi tantivy to speed up CI (#987)
This commit is contained in:
@@ -43,7 +43,7 @@ pip install lancedb
|
|||||||
We also need to install a specific commit of `tantivy`, a dependency of the LanceDB full text search engine we will use later in this guide:
|
We also need to install a specific commit of `tantivy`, a dependency of the LanceDB full text search engine we will use later in this guide:
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install tantivy@git+https://github.com/quickwit-oss/tantivy-py#164adc87e1a033117001cf70e38c82a53014d985
|
pip install tantivy
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a new Python file and add the following code:
|
Create a new Python file and add the following code:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ try:
|
|||||||
import tantivy
|
import tantivy
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise 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." # noqa: E501
|
"Please install tantivy-py `pip install tantivy` to use the full text search feature." # noqa: E501
|
||||||
)
|
)
|
||||||
|
|
||||||
from .table import LanceTable
|
from .table import LanceTable
|
||||||
|
|||||||
@@ -559,7 +559,7 @@ class LanceFtsQueryBuilder(LanceQueryBuilder):
|
|||||||
import tantivy
|
import tantivy
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise 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." # noqa: E501
|
"Please install tantivy-py `pip install tantivy` to use the full text search feature." # noqa: E501
|
||||||
)
|
)
|
||||||
|
|
||||||
from .fts import search_index
|
from .fts import search_index
|
||||||
|
|||||||
Reference in New Issue
Block a user