Commit Graph

35 Commits (14827d94d298f932385e2ef10d73a9187998dd9c)

Author SHA1 Message Date
Cameron 1d1e06ed25
ci: prep for release (#265) 2024-05-05 18:38:50 +10:00
Caleb Hattingh 983364b3a5
feat: upgrade tantivy to 0.22 (#242) 2024-05-03 23:35:19 +02:00
Adam Reichold e95a4569d4
Add field_boosts and fuzzy_fields optional parameters to Index::parse_query (#202) 2024-02-05 12:01:26 +01:00
Caleb Hattingh cde36c20cd
chore: fix module namespace (#190) 2024-01-21 21:16:34 +01:00
Chris Tam adfdae0e64
Support passing dict to add JSON field (#158) 2023-11-21 20:44:21 +01:00
Caleb Hattingh 5d3d2790df
doc: enable doctests (#156) 2023-11-20 11:44:32 +10:00
Chris Tam eeaad34a98
Better support bytes, IPs, and JSON (#152) 2023-11-19 12:08:33 +01:00
Caleb Hattingh f164b0ef4a
Snippet generator (fixes #36 and #63) (#122)
Co-authored-by: Justin Greene <justin.greene@intouchsol.com>
Co-authored-by: Paul Masurel <paul@quickwit.io>
Co-authored-by: Pratyush Mittal <pratyushmittal@gmail.com>
Co-authored-by: mukeshsahnis <er.mks89@gmail.com>
2023-09-13 12:03:39 +02:00
Adam Reichold 76512f859b
Fine-tune handling of GIL for search (#124) 2023-09-11 17:58:17 +02:00
Chris Tam 05dde2d232
Support pickling of some objects (#97) 2023-08-26 14:13:29 +02:00
Chris Tam 9f932aeebe
Add support for booleans in schemas and docs (#105) 2023-08-16 00:39:28 +02:00
Chris Tam bbcd1f2aef
Raise errors instead of unwrapping in document (#106) 2023-08-05 20:55:56 +02:00
Chris Tam 50809a186d
Clean up document.rs (#101) 2023-08-04 17:19:39 +02:00
Chris Tam 8b33e00c58
Support copy, deepcopy, eq on types (#99) 2023-08-04 09:23:31 +02:00
Chris Tam b377f570ef
Add schema validation to PyDict -> Document (#88)
* Add schema validation to PyDict -> Document

* Address comments

* Add documentation about new functionality
2023-07-22 00:13:03 +02:00
Caleb Hattingh 8356af5410
Fix lint 2023-03-26 15:06:30 +02:00
Caleb Hattingh 2f65cc65ff
Include check for bytes in extract_value, fixes #72 2023-03-26 15:03:31 +02:00
Sidhant Arora 4ffdffe4d6
Merge branch 'master' into add_float_support 2023-03-16 15:11:30 +10:00
Phill Mell-Davies 164adc87e1
Tantivy 0.19.2 (#67)
* Adding __init__.py file to the tantivy folder to make maturin happy

Add Cargo.lock to the repo

Set the git-fetch-with-cli cargo flag so that we can override fetch settings

Renaming .cargo/config to .cargo/config.toml

Adding github-quiq-sh cargo registry

Point dependencies at our github-quiq-sh registry

Trying to resolve this build issue, pointing pyo3-build-config at our github-quiq-sh registry

SER-21487: Enable support for all standard Tantivy languages plus Chinese + Japanese in tantivy-py

SER-21487: Use uname rather than UNAME in the Makefile

SER-21487: Fix document date handling

SER-23013: Upgrade Tantivy and other dependencies

* Upgrade to Tantivy 0.19.1

* Apply rustfmt and fix bug when fast option = None

* Upgrade to tantivy-0.19.2

* Standardize around using 'cargo fmt' rather than 'rustfmt'

* Reverting to old style dependencies

* Linting with clippy

* Switching out hashmap for defining tokenizers for an array, and adding test for Spanish indexing

* Use cargo fmt instead of rustfmt on the Lint ci step
2023-02-14 13:20:59 +00:00
Sidhant29 94bfb0600c
Fixed typo 2023-01-17 11:01:43 +10:00
Sidhant29 caf52766be
Added add_float() function for Document 2023-01-17 10:48:18 +10:00
Shaobo 7efd477e0b Bump tantivy version 0.17.0 2022-04-27 11:41:08 +08:00
messense a9e75e5c16
Update to pyo3 0.15 (#40) 2022-01-17 10:16:08 +09:00
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
Damir Jelić 7af1b68a45 tantivy: Merge our imports. 2020-09-20 10:19:29 +02:00
Damir Jelić b75f9d75b6 tantivy-py: Upgrade to PyO3 0.9. 2020-04-19 13:35:14 +02:00
Damir Jelić 19219316a8 index: Fix some lint issues. 2020-01-05 12:39:10 +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 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
Damir Jelić 5ea790518b Initial python bindings implementation. 2019-06-04 11:09:58 +02:00