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 Masurel
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
PSeitz
141b9aa245
Merge pull request #1306 from PSeitz/histogram
...
add Histogram aggregation
2022-03-18 05:03:46 +01:00
PSeitz
c5a6282fa8
Update src/aggregation/bucket/histogram/histogram.rs
...
Co-authored-by: Paul Masurel <paul@quickwit.io >
2022-03-18 04:55:31 +01:00
PSeitz
c0f524e1a3
Update src/aggregation/bucket/histogram/histogram.rs
...
Co-authored-by: Paul Masurel <paul@quickwit.io >
2022-03-18 04:55:25 +01:00
Pascal Seitz
f619658e2c
rename
2022-03-17 16:37:57 +08:00
Pascal Seitz
aa391bf843
refactor parameters
2022-03-17 16:28:37 +08:00
Pascal Seitz
47dcbdbeae
handle empty results, empty indices, add tests
2022-03-17 10:24:34 +08:00
Pascal Seitz
691245bf20
make code more concise
2022-03-16 14:21:58 +08:00
Pascal Seitz
90798d4b39
address comments, add single bucket test
2022-03-16 13:58:13 +08:00
Pascal Seitz
0b6d9f90cf
improve docs
2022-03-16 12:39:26 +08:00
Pascal Seitz
e73542e2e8
Elasticsearch behaviour on hard/extended_bounds
2022-03-15 16:46:45 +08:00
Pascal Seitz
0262e44bbd
merge_fruits pass by value
2022-03-15 12:59:22 +08:00
Pascal Seitz
613aad7a8a
vec optional, improve performance
2022-03-14 21:29:07 +08:00
Pascal Seitz
1aa88b0c51
improve performance
2022-03-14 20:28:08 +08:00
Pascal Seitz
564fa38085
move sub_aggregations to own vec, use itertools minmax
2022-03-14 16:20:26 +08:00
PSeitz
b105bf72e1
use defaults in meta.json ( #1310 )
...
This change allows to have unset fields in meta.json and fall back to their defaults
Currently it is required to explicitly put e.g. fieldnorms: false
2022-03-14 13:54:06 +09:00
Pascal Seitz
226f577803
Add Histogram aggregation
2022-03-11 21:52:07 +08:00
PSeitz
4b62f7907d
Merge pull request #1297 from PSeitz/fix_clippy
...
fix clippy issues
2022-03-02 10:11:56 +01:00
Pascal Seitz
7fa6a0b665
cargo fmt
2022-03-02 09:24:14 +01:00
Saroh
1cd2434a32
fix(aggregations) Readme
2022-03-01 20:37:48 +01:00
Paul Masurel
c0b1a58d27
Apply suggestions from code review
2022-03-01 18:41:58 +09:00
Pascal Seitz
091b668624
fix clippy issues
2022-03-01 08:58:51 +01:00
Pascal Seitz
010e92c118
fix intermediate result de/serialization
...
return None for empty average/stats metric
add test for de/serialization of intermediate result
add test for metric on empty result
2022-02-25 16:39:57 +01:00
PSeitz
c4f66eb185
improve validation in aggregation, extend invalid field test ( #1292 )
...
* improve validation in aggregation, extend invalid field test
improve validation in aggregation
extend invalid field test
Fixes #1291
* collect fast field names on request structure
* fix visibility of AggregationSegmentCollector
2022-02-25 15:21:19 +09:00
Paul Masurel
d7b46d2137
Added JSON Type ( #1270 )
...
- Removed useless copy when ingesting JSON.
- Bugfix in phrase query with a missing field norms.
- Disabled range query on default fields
Closes #1251
2022-02-24 16:25:22 +09:00
PSeitz
d042ce74c7
Merge pull request #1289 from PSeitz/numeric_options
...
rename IntOptions to NumericOptions
2022-02-23 14:04:40 +01:00
Pascal Seitz
fdd5ef85e5
improve aggregation docs
2022-02-22 10:37:54 +01:00
Pascal Seitz
704498a1ac
rename IntOptions to NumericOptions
...
keep IntOptions with deprecation warning
Fixes #1286
2022-02-21 22:20:07 +01:00
PSeitz
1232af7928
fix docs ( #1288 )
2022-02-21 23:15:58 +09:00
PSeitz
972cb6c26d
Aggregation ( #1276 )
...
Added support for aggregation compatible with Elasticsearch's API.
2022-02-21 09:59:11 +09:00