tantivy/examples
Moe 70e591e230
feat: added filter aggregation (#2711)
* Initial impl

* Added `Filter` impl in `build_single_agg_segment_collector_with_reader` + Added tests

* Added `Filter(FilterBucketResult)` + Made tests work.

* Fixed type issues.

* Fixed a test.

* 8a7a73a: Pass `segment_reader`

* Added more tests.

* Improved parsing + tests

* refactoring

* Added more tests.

* refactoring: moved parsing code under QueryParser

* Use Tantivy syntax instead of ES

* Added a sanity check test.

* Simplified impl + tests

* Added back tests in a more maintable way

* nitz.

* nitz

* implemented very simple fast-path

* improved a comment

* implemented fast field support

* Used `BoundsRange`

* Improved fast field impl + tests

* Simplified execution.

* Fixed exports + nitz

* Improved the tests to check to the expected result.

* Improved test by checking the whole result JSON

* Removed brittle perf checks.

* Added efficiency verification tests.

* Added one more efficiency check test.

* Improved the efficiency tests.

* Removed unnecessary parsing code + added direct Query obj

* Fixed tests.

* Improved tests

* Fixed code structure

* Fixed lint issues

* nitz.

* nitz

* nitz.

* nitz.

* nitz.

* Added an example

* Fixed PR comments.

* Applied PR comments + nitz

* nitz.

* Improved the code.

* Fixed a perf issue.

* Added batch processing.

* Made the example more interesting

* Fixed bucket count

* Renamed Direct to CustomQuery

* Fixed lint issues.

* No need for scorer to be an `Option`

* nitz

* Used BitSet

* Added an optimization for AllQuery

* Fixed merge issues.

* Fixed lint issues.

* Added benchmark for FILTER

* Removed the Option wrapper.

* nitz.

* Applied PR comments.

* Fixed the AllQuery optimization

* Applied PR comments.

* feat: used `erased_serde` to allow filter query to be serialized

* further improved a comment

* Added back tests.

* removed an unused method

* removed an unused method

* Added documentation

* nitz.

* Added query builder.

* Fixed a comment.

* Applied PR comments.

* Fixed doctest issues.

* Added ser/de

* Removed bench in test

* Fixed a lint issue.
2025-11-18 20:54:31 +01:00
..
aggregation.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
basic_search.rs fix a typo in the comment (#2668) 2025-07-10 07:14:57 +02:00
custom_collector.rs cleanup top level exports (#2382) 2024-05-07 09:59:41 +02:00
custom_tokenizer.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
date_time_field.rs return CompactDocValue instead of trait (#2410) 2024-05-27 07:33:50 +02:00
deleting_updating_documents.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
faceted_search.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
faceted_search_with_tweaked_score.rs compact doc (#2402) 2024-05-21 10:16:08 +02:00
filter_aggregation.rs feat: added filter aggregation (#2711) 2025-11-18 20:54:31 +01:00
fuzzy_search.rs remove duplicated call to index_writer.commit() in example (#2732) 2025-11-12 14:52:44 +01:00
index_from_multiple_threads.rs style: simplify strings with string interpolation (#2412) 2024-05-27 09:16:47 +02:00
index_with_json.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
integer_range_search.rs refactor fast field query (#2452) 2024-07-15 18:08:05 +08:00
ip_field.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
iterating_docs_and_positions.rs Reduce typo count. (#2510) 2024-10-10 09:55:37 +08:00
json_field.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
phrase_prefix_search.rs rename ReloadPolicy onCommit to onCommitWithDelay (#2235) 2023-11-03 12:22:10 +01:00
pre_tokenized_text.rs rename ReloadPolicy onCommit to onCommitWithDelay (#2235) 2023-11-03 12:22:10 +01:00
snippet.rs improve docs, rework exports (#2220) 2023-10-18 09:22:24 +02:00
stop_words.rs POC: Tantivy documents as a trait (#2071) 2023-10-02 10:01:16 +02:00
warmer.rs cleanup top level exports (#2382) 2024-05-07 09:59:41 +02:00