Commit Graph

20 Commits (1d80c194342d85a028794a60d03fc04436c84fa4)

Author SHA1 Message Date
Damir Jelić 32b6b67af4 README: Update the docs for the new simpler search API. 2020-01-05 17:22:58 +01:00
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ć a5ac1a5463 searcher: Remove the unused schema. 2020-01-05 14:08:57 +01:00
Damir Jelić 46be799248 Merge remote-tracking branch 'origin/search_api_simplification' 2020-01-05 13:52:35 +01:00
Damir Jelić 19219316a8 index: Fix some lint issues. 2020-01-05 12:39:10 +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ć 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 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 0498f941b0 API simplification.
See #9
2019-08-14 17:49:18 +09: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
Paul Masurel f3ea129fa7 Fixing build. 2019-08-01 17:22:40 +09:00
Damir Jelić 5ea790518b Initial python bindings implementation. 2019-06-04 11:09:58 +02:00