Pascal Seitz
fdb2524f9e
minor docs fixes
2022-05-02 12:26:12 +08:00
Pascal Seitz
4db655ae82
update dependencies, update edition
2022-04-28 22:50:55 +08:00
Pascal Seitz
b5b16948b0
print whole query on syntax error
2022-04-27 12:48:30 +08:00
PSeitz
c305d3a2a2
Merge pull request #1346 from quickwit-oss/term_agg
...
term agg
2022-04-26 07:08:07 +02:00
PSeitz
038d234ff1
Merge pull request #1347 from quickwit-oss/query_parser_error
...
fix query parser error field not found
2022-04-26 07:01:48 +02:00
Pascal Seitz
c45eb9a9fa
improve readability, add json test
2022-04-26 11:22:34 +08:00
Pascal Seitz
824d6f96fe
return query on parse error
2022-04-22 16:11:36 +08:00
Pascal Seitz
7cf821bac0
fix query parser error field not found
2022-04-22 12:40:00 +08:00
PSeitz
ae83fc8298
bump uuid to 1.0 ( #1345 )
2022-04-22 10:02:24 +09: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
706fbd6886
fix DateTime naming, fix docs, cleanup
2022-04-13 13:01:00 +08:00
Pascal Seitz
bb5254de12
always serialize, use enum as param
2022-04-04 13:50:23 +08:00
Pascal Seitz
ec9478830a
add text test
...
move get multiple values to test code
remove sorting term ids per docidi for non facets
2022-03-30 11:31:33 +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
Uwe Klotz
125707dbe0
Replace chrono with time ( #1307 )
...
For date values `chrono` has been replaced with `time`
- The `time` crate is re-exported as `tantivy::time` instead of `tantivy::chrono`.
- The type alias `tantivy::DateTime` has been removed.
- `Value::Date` wraps `time::PrimitiveDateTime` without time zone information.
- Internally date/time values are stored as seconds since UNIX epoch in UTC.
- Converting a `time::OffsetDateTime` to `Value::Date` implicitly converts the value into UTC.
If this is not desired do the time zone conversion yourself and use `time::PrimitiveDateTime`
directly instead.
Closes #1304
2022-03-21 10:50:19 +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
Paul Masurel
958b2bee08
Clippy comments ( #1316 )
2022-03-17 18:57:55 +09: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
PSeitz
8a5a12d961
add setter to json object options ( #1311 )
2022-03-16 10:36:30 +09: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
42283f9e91
fix error message UnknownTokenizer ( #1308 )
...
closes #1303
2022-03-14 13:54:47 +09: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
Halvor Fladsrud Bø
cedced5bb0
Slop support for phrase queries ( #1241 )
...
Closes #1068
2022-03-07 15:29:18 +09:00