Commit Graph

61 Commits (3895e324eed8aec6e2cbdbf97184b815d466fbf6)

Author SHA1 Message Date
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
Damir Jelić 6aa3e904f8 tests: Add some tests that use a tmpdir to store the index. 2019-10-06 20:15:14 +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 ccd8021ff9 CR: Adding trailing lines and removing some trailing spaces. 2019-08-30 07:37:20 +09:00
Paul Masurel 0498f941b0 API simplification.
See #9
2019-08-14 17:49:18 +09:00
petr-tik b911c2f353 Replace setup_class methods with pytest.fixture 2019-08-03 12:28:12 +01: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ć 5ea790518b Initial python bindings implementation. 2019-06-04 11:09:58 +02:00