Commit Graph

63 Commits (master)

Author SHA1 Message Date
Caleb Hattingh 32d6b6ced9
Fix json bug - fixes #353 (#354) 2024-09-23 10:41:38 +02:00
Caleb Hattingh 74ca327de6
Wrap Searcher.doc_freq. Fixes #344 (#345) 2024-09-12 17:23:52 +02:00
alex-au-922 adc7b08b75
Expose Range Query (Beta) (#281)
Co-authored-by: Caleb Hattingh <caleb.hattingh@gmail.com>
2024-06-10 01:00:39 +02:00
Tushar 8ece24161b
feat: Aggregations API (#288) 2024-06-09 13:12:57 +02:00
Caleb Hattingh f0cfe7445b
chore: remove useless test (#263) 2024-05-03 23:52:38 +02:00
Caleb Hattingh 52f7d6d08d
fix: repair `order_by_field` with date fields (#262) 2024-05-03 23:49:32 +02:00
Caleb Hattingh 983364b3a5
feat: upgrade tantivy to 0.22 (#242) 2024-05-03 23:35:19 +02:00
Tomoko Uchida 9fafdf25cb
Expose Tantivy's MoreLikeThisQuery (#257) 2024-05-03 22:15:21 +02:00
Tomoko Uchida 03b1c89fa3
Expose Tantivy's PhraseQuery (#234) 2024-05-03 22:10:58 +02:00
alex-au-922 10553de76e
Expose const score query (#256) 2024-04-28 12:54:21 +02:00
Aécio Santos 8216f17d60
Expose Tantivy's TermSetQuery (#249) 2024-04-26 13:21:46 +02:00
alex-au-922 5c3666349b
expose regex query (#241)
Co-authored-by: alexau <alexau@hket.com>
2024-04-25 12:57:09 +10:00
alex-au-922 c74990aeb8
Expose boost query (#250) 2024-04-24 23:57:16 +02:00
Caleb Hattingh ed7374c7bd
fix: incorrect test name for fuzzy_fields (#252) 2024-04-24 15:10:45 +02:00
Aécio Santos deb88ccdcd
Expose Tantivy's DisjunctionMaxQuery (#244)
Co-authored-by: Caleb Hattingh <caleb.hattingh@gmail.com>
2024-04-24 22:12:24 +10:00
alex-au-922 1d61b96ffc
Expose the method of boolean query (#243) 2024-04-23 01:27:51 +02:00
Tomoko Uchida b857dfec15
Fix fuzzy_term_query() documentation. (#236) 2024-04-13 12:26:05 +02:00
Tomoko Uchida 0a320fc0c9
Expose Tantivy's FuzzyTermQuery (#233) 2024-04-13 11:14:56 +02:00
Tomoko Uchida 255eb6efba
Expose tantivy's AllQuery (#230) 2024-03-31 21:56:22 +10:00
Caleb Hattingh e9363e71d8
doc: fix Snippet docstring. fixes #225 (#226) 2024-03-22 01:47:33 +01:00
Caleb Hattingh a2549a958a
doc: Add mktestdocs, and tutorial for snippets. Fixes #219 (#223) 2024-03-20 01:06:31 +01: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 eba0d55634
doc: escaping quotes requires quoted queries (fix #185) (#189) 2024-01-21 21:16:47 +01:00
Tomoko Uchida f94e04637b
Expose tantivy's TermQuery (#175) 2023-12-20 19:40:50 +10:00
Chris Tam adfdae0e64
Support passing dict to add JSON field (#158) 2023-11-21 20:44:21 +01:00
Chris Tam eeaad34a98
Better support bytes, IPs, and JSON (#152) 2023-11-19 12:08:33 +01:00
Chris Tam 2040463d52
Support lenient parser (#114) 2023-10-03 09:52:22 +02:00
Chris Tam 11f8bc4611
Update to tantivy v0.21.0 (#132) 2023-09-28 10:17:15 +02:00
Stone 4af7d7c45f
Adding delete_all_documents method for IndexWriter (#133) 2023-09-27 23:42:38 +02: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
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 8b33e00c58
Support copy, deepcopy, eq on types (#99) 2023-08-04 09:23:31 +02:00
Chris Tam 35ed22e6d5
Expose IndexWriter::wait_merging_threads() (#100) 2023-07-22 21:57:30 +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
Sidhant Arora a266f41974
feat: tantivy_0.20.1_upgrade (#82)
* Added api changes from tantivy-0.20.1

* lint fix

* Increase test writer heap to 10_000_000

* Revert test back to original check

* Update src/searcher.rs

Co-authored-by: Cameron <561860+wallies@users.noreply.github.com>

---------

Co-authored-by: Caleb Hattingh <caleb.hattingh@gmail.com>
Co-authored-by: Cameron <561860+wallies@users.noreply.github.com>
2023-07-21 09:44:47 +10:00
Caleb Hattingh efe43d38ab
Update tests/tantivy_test.py
Co-authored-by: Harrison Burt <57491488+ChillFish8@users.noreply.github.com>
2023-03-26 23:27:14 +10:00
Caleb Hattingh 2f65cc65ff
Include check for bytes in extract_value, fixes #72 2023-03-26 15:03:31 +02:00
Sidhant29 520159fe6e
Fixed accidental ommision, caused by merge conflicts 2023-03-18 14:56:50 +10: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 75f2f0296d
Added float support 2023-01-17 10:43:39 +10:00
Shaobo 7efd477e0b Bump tantivy version 0.17.0 2022-04-27 11:41:08 +08:00
Antoine G 27340e91bf
remove test index files and edit tests accordingly (#46) 2022-04-27 10:48:19 +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
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