Commit Graph
79 Commits
Author SHA1 Message Date
Evance Soumaoro fad3faefe2 added InvertedIndexReader::doc_freq_async and SnippetGenerator::new methods 2022-08-12 06:39:10 +00:00
k-yomo 099e626156 Refactor InternalRangeAggregationRange initialization with From trait 2022-07-29 05:41:29 +09:00
k-yomo 704d0a8d8b Refactor range aggregation tests 2022-07-28 06:31:25 +09:00
k-yomo 195309a557 Add support for custom key param for range aggregation 2022-07-28 06:21:39 +09:00
k-yomo 9b6b60cc2b Remove unnecessary keyed parameter setting 2022-07-27 18:43:52 +09:00
k-yomo 6444516a82 User serde default for the keyed params 2022-07-27 01:12:56 +09:00
k-yomo a9b0d1a0ab Fix aggreagtion examples 2022-07-26 18:54:27 +09:00
k-yomo 2b333ca635 Fix keyed param type in the comment 2022-07-26 18:35:01 +09:00
k-yomo 80a1418284 Use FnvHashMap for keyed bucket entries 2022-07-26 18:24:54 +09:00
k-yomo 5ab5f070ed Fix to use bool directory for the keyed parameter 2022-07-26 18:18:38 +09:00
k-yomo d122f2c74e Add tests for keyed buckets 2022-07-26 04:28:21 +09:00
k-yomo 5b564916f0 Add support for keyed parameter in range and histgram aggregations 2022-07-26 04:28:21 +09:00
Evance Soumaoro f26b686a1c expose IntermediateAggregationResults->into_final_bucket_result 2022-07-21 11:19:23 +00:00
Evance Soumaoro a4be239d38 Updated DateTime to hold timestamp in microseconds, while making date field precision configurable (#1396) 2022-07-12 10:04:28 +09:00
Pascal Seitz 1bd44a5f61 use total_cmp 2022-07-04 12:48:23 +08:00
PSeitz db1836691e fix visibility (#1398) 2022-06-28 16:21:39 +09:00
PSeitz 6ca5f77466 Merge pull request #1363 from quickwit-oss/refactor_aggregation
Add aggregation bucket limit
2022-06-23 10:27:57 +08:00
Ryan Russell ca836b6414 Improve Docs Readability (#1380)
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-06-02 09:32:57 +09:00
Pascal Seitz 71f75071d2 cache and return error in aggregations 2022-05-19 16:58:56 +08:00
Pascal Seitz b114e553cd Revert "return result from segment collector"
This reverts commit a99e5459e3.
2022-05-19 16:57:55 +08:00
Pascal Seitz 17dcc99e43 Revert "introduce optional collect_block in segmentcollector"
This reverts commit c5c2e59b2b.
2022-05-19 16:25:21 +08:00
Pascal Seitz c5c2e59b2b introduce optional collect_block in segmentcollector
add collect_block in segment_collector to handle groups of documents as performance optimization
add collect_block for MultiCollector
2022-05-19 16:23:25 +08:00
Pascal Seitz 44ea7313ca set max bucket size as parameter 2022-05-13 13:21:52 +08:00
Pascal Seitz 11ac451250 abort aggregation when too many buckets are created
Validation happens on different phases depending on the aggregation
Term: During segment collection
Histogram: At the end when converting in intermediate buckets (we preallocate empty buckets for the range) Revisit after #1370
Range: When validating the request

update CHANGELOG
2022-05-12 12:26:43 +08:00
Pascal Seitz 6a4632211a forward error in aggregation collect 2022-05-12 12:26:43 +08:00
Pascal Seitz a99e5459e3 return result from segment collector 2022-05-12 12:26:43 +08:00
Pascal Seitz 3f88718f38 refactor aggregations 2022-05-12 12:26:43 +08:00
Pascal Seitz d77e8de36a flip alias variable name 2022-05-06 17:52:36 +08:00
Pascal Seitz d11a8cce26 minor docs fix 2022-05-06 17:52:36 +08:00
Pascal Seitz bc607a921b add alias shard_size split_size for quickwit
improve some docs
2022-05-06 17:52:36 +08:00
Paul Masurel 02e24fda52 Clippy fix 2022-05-04 12:24:07 +09:00
Pascal Seitz fdb2524f9e minor docs fixes 2022-05-02 12:26:12 +08:00
Pascal Seitz c45eb9a9fa improve readability, add json test 2022-04-26 11:22:34 +08:00
Pascal Seitz 2805291400 minor fixes 2022-04-20 14:22:44 +08:00
Pascal Seitz 6614a2cba0 fix is_fast for bytes field 2022-04-20 12:02:38 +08:00
Pascal Seitz 6f4d203d1b return error on missing sub aggregation 2022-04-20 11:19:36 +08:00
Pascal Seitz 1be6c6111c support order property on term aggregations
support order property on term aggregations
order can be by doc_count, key, or a metric sub_aggregation
2022-04-20 00:34:38 +08:00
Pascal Seitz ec69875d15 fix collecting term_dict field names
fix collecting term_dict field names for sub_aggregations, minor refactoring
2022-04-15 17:49:20 +08:00
Pascal Seitz ab6b532cc4 add comments 2022-04-14 12:06:36 +08:00
Pascal Seitz 4b6047f7d7 return Option from as_ methods 2022-04-14 10:48:36 +08:00
Pascal Seitz 5ca04beb94 add min_doc_count test 2022-04-13 19:51:18 +08:00
Pascal Seitz 902d05ebec refactor getffreader function 2022-04-13 19:51:18 +08:00
Pascal Seitz f1b298642a remove unnecessary benchmarks 2022-04-13 19:51:18 +08:00
Pascal Seitz dd13dedaeb forward errors, remove unwrap 2022-04-13 19:51:18 +08:00
Pascal Seitz 46724b4a05 add segment_size, add get term dict fields, add tests 2022-04-13 19:51:18 +08:00
Pascal Seitz 24432bf523 add term aggregation 2022-04-13 19:51:18 +08:00
Pascal Seitz 8807bfd13d fast field on string
enables FAST on string fields, which creates a fastfield containing the term ordinals
2022-03-29 12:40:10 +08:00
PSeitz f29acf5d8c fix clippy (#1321) 2022-03-22 12:48:23 +09:00
Paul MasurelandPSeitz 46d5de920d Removes all usage of block_on, and use a oneshot channel instead. (#1315)
* Removes all usage of block_on, and use a oneshot channel instead.

Calling `block_on` panics in certain context.
For instance, it panics when it is called in a the context of another
call to block.

Using it in tantivy is unnecessary. We replace it by a thin wrapper
around a oneshot channel that supports both async/sync.

* Removing needless uses of async in the API.

Co-authored-by: PSeitz <PSeitz@users.noreply.github.com>
2022-03-18 16:54:58 +09:00
PSeitz d2a7bcf217 fix fmt (#1317) 2022-03-18 15:53:27 +09:00