Commit Graph

19 Commits (eba3f6034610d2f676ce5b6a02b6ebadb2d21dee)

Author SHA1 Message Date
Paul Masurel c86f0fc1d6 Avoid truncating utf-8 strings in the middle of a codepoint in
`Document::__repr__`

Closes #24
2020-10-01 22:36:28 +09:00
sourcepirate 20989628e4 updated tests for offset query 2020-09-07 20:06:16 +02:00
Damir Jelić 094f8974ea searcher: Add support to search and order the results by a field. 2020-04-19 12:26:56 +02:00
Damir Jelić 46be799248 Merge remote-tracking branch 'origin/search_api_simplification' 2020-01-05 13:52:35 +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
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