Damir Jelić
044b65321e
index: Remove a redundant clone.
2020-01-05 16:00:02 +01:00
Damir Jelić
5c590ff157
Format the repo.
2020-01-05 15:59:43 +01:00
Damir Jelić
d117555509
travis: Use the rust language for the lint job.
2020-01-05 15:33:24 +01:00
Damir Jelić
7fd667f4e0
gitignore: Add the new maturin provided so file to the ignores.
2020-01-05 14:58:38 +01:00
Damir Jelić
6a7c6f9c81
Travis: Update the travis file to use Pipenv and maturin.
2020-01-05 14:57:59 +01:00
Damir Jelić
df26c74aee
Add a Pipfile.
2020-01-05 14:56:50 +01:00
Damir Jelić
a5ac1a5463
searcher: Remove the unused schema.
2020-01-05 14:08:57 +01:00
Damir Jelić
c8775c69cc
pyptoject: Use maturin from now on.
2020-01-05 13:52:53 +01:00
Damir Jelić
46be799248
Merge remote-tracking branch 'origin/search_api_simplification'
2020-01-05 13:52:35 +01:00
Damir Jelić
615fcf2187
rust-toolchain: Update the toolchain version.
2020-01-05 12:40:37 +01:00
Damir Jelić
eb821b65f5
Cargo.toml: Update the dependency versions.
2020-01-05 12:40:07 +01:00
Damir Jelić
19219316a8
index: Fix some lint issues.
2020-01-05 12:39:10 +01:00
Damir Jelić
df3d57fd2d
Remove setup.py.
...
The setup.py will not be needed anymore since maturin will be used to
build python packages.
Maturin requires only the cargo.toml configuration file.
2020-01-05 12:37:09 +01:00
Damir Jelić
2d6ecff430
tests: Fix the failing test that tries to open an incompatible index version.
2020-01-05 12:04:27 +01:00
Damir Jelić
f8e39a7b7f
searcher: Remove the ability to order the search result.
...
Ordering the search result by a field requires the field to be set up to
support this at the index creation time. If it wasn't properly set up,
such a search would crash the Python interpreter.
Until a search returns an error that we can convert to a Python
exception this feature will unlikely be supported.
2019-12-17 23:17:44 +01:00
Damir Jelić
cfa15a001d
searcher: Use a search result struct.
2019-12-17 20:50:26 +01:00
Damir Jelić
d46417c220
searcher: Allow the search to be sorted by an unsigned field.
2019-12-17 20:50:26 +01:00
Damir Jelić
fbea6fe633
searcher: Remove the collector concept.
...
This patch removes the TopDocs collector class and adds a limit
argument on the search method.
2019-12-17 20:50:26 +01:00
Paul Masurel
41cdad4157
Using tantivy 0.11
2019-12-17 23:23:53 +09:00
Damir Jelić
f8d43502c3
Merge branch 'fix-readme'
2019-10-06 23:09:41 +02:00
Dmitrii Gerasimov
4942c73aee
Update README.md
2019-10-06 21:59:08 +01:00
Damir Jelić
6aa3e904f8
tests: Add some tests that use a tmpdir to store the index.
2019-10-06 20:15:14 +02:00
Dima Gerasimov
7ce637d5cb
Fix TypeErrors in readme example
2019-10-06 12:47:50 +01:00
Damir Jelić
efbbd24baa
Update to PyO3 0.8.
2019-10-01 18:32:06 +02:00
Ramon Navarro Bosch
75f0670dd6
Adding delete_document function to index ( #12 )
...
* Adding Term, Field and delete_term API mapping
* Fixing test
* Fixing code doc
* Removing Term and Field and nesting code on delete_term
* Fixing lint
* Delete_documents and documentation
* Fixing style and testing exceptions
* Fixing missing return
* Fixing fmt
2019-09-09 21:30:50 +09:00
Paul Masurel
51f080d001
Remove race condition in test_create_readers
2019-09-06 09:45:29 +09:00
Paul Masurel
f57c4669c8
Merge pull request #3 from tantivy-search/api-change
...
Different API Change.
2019-09-02 09:52:29 +09:00
Paul Masurel
c91234cd73
Depending on tantivy@master
2019-09-02 09:39:18 +09:00
Paul Masurel
ccd8021ff9
CR: Adding trailing lines and removing some trailing spaces.
2019-08-30 07:37:20 +09:00
Paul Masurel
6dc2b943b4
CR comment, fixing some obsolete pydoc.
2019-08-29 09:36:08 +09:00
Paul Masurel
1ce4b4d51e
Fixed tantivy rev
2019-08-21 07:19:00 +09:00
Paul Masurel
0498f941b0
API simplification.
...
See #9
2019-08-14 17:49:18 +09:00
Damir Jelić
b1b3689c55
README: Add a badge for the license.
2019-08-08 15:54:27 +02:00
Damir Jelić
b0bfe500ba
README: Add a build status badge.
...
This closes #5 .
2019-08-08 15:48:26 +02:00
Damir Jelić
0b2967de97
travis: Add the cargo bin path to the PATH.
2019-08-08 15:14:45 +02:00
Damir Jelić
7ce2952ea7
tantivy: Add an initial travis file.
2019-08-08 14:22:35 +02:00
Damir Jelić
fa682ab213
tantivy: Add a tox.ini file.
2019-08-08 14:22:23 +02:00
Damir Jelić
de7e660313
tantivy: Disable a clippy warning about new not returning self.
...
The new() method using pyo3 does not return self, pyo3 handles some
python magic for us instead.
Disable the clippy warning about not returning self in new since it does
not apply to us.
2019-08-08 13:55:40 +02:00
Damir Jelić
3f09fd38c8
tantivy: Fix some clippy warnings.
2019-08-08 13:55:19 +02:00
Damir Jelić
41a6bb3109
Merge branch 'more_tests'
2019-08-03 13:56:36 +02:00
Paul Masurel
d785822225
Merge pull request #8 from tantivy-search/poljar/packaging_improvements
...
Packaging improvements
2019-08-03 20:48:02 +09:00
petr-tik
b911c2f353
Replace setup_class methods with pytest.fixture
2019-08-03 12:28:12 +01:00
Damir Jelić
b90b7dd610
setup.py: Add a description and long description.
...
This adds a short description and puts the contents from the README into
the long description.
This will be useful for packages that will end up on pypi.
2019-08-03 12:17:04 +02:00
Damir Jelić
7afe8905c0
setup.py: Bump the version to be the same as tantivy.
2019-08-03 11:52:23 +02:00
Damir Jelić
2745c03384
Cargo.toml: Use the same version as the core tantivy lib.
...
This closes #6 .
2019-08-03 11:51:55 +02:00
petr-tik
bd93e4ca75
use meta.json to programmatically check last opstamp and num_docs
2019-08-03 00:55:31 +01:00
petr-tik
b2a769f1d7
Test reading an index from dir
...
Created and committed an index dir with 3 documents
2019-08-03 00:39:02 +01:00
petr-tik
9864053cf8
Tests
...
added tests for AND BooleanQuery and ValueError in case of a malformed query
Moved document index setup into a classmethod.
classmethod will setup once at the start,
giving all test methods attributes to access.
I think it cuts on boilerplate in each test method
2019-08-02 22:32:08 +01:00
Damir Jelić
82dbd452ea
Cargo.toml: Switch to a cdylib.
...
pyo3-pack requires the library to be a cdylib. This patch allows us to
use pyo3-pack to build and publish tantivy-py using pyo3-pack.
2019-08-02 17:21:13 +02:00
Paul Masurel
f3ea129fa7
Fixing build.
2019-08-01 17:22:40 +09:00