chore(python): use pypi tantivy to speed up CI (#987)

This commit is contained in:
Chang She
2024-03-03 16:57:55 -08:00
committed by Weston Pace
parent 4f34a01020
commit a7dbe933dc
3 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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