PSeitz
ee1f2c1f28
add aggregation support for date type ( #1693 )
...
* add aggregation support for date type
fixes #1332
* serialize key_as_string as rfc3339 in date histogram
* update docs
* enable date for range aggregation
2022-11-28 09:12:08 +09:00
Pascal Seitz
e772d3170d
switch get_val() to u32
...
Fixes #1638
2022-10-24 19:05:57 +08:00
Bruce Mitchener
cb252a42af
docs: "associated to" -> "associated with" ( #1557 )
...
This reads better this way.
2022-09-26 20:23:37 +09:00
Bruce Mitchener
6a88ac3fe3
Documentation improvements.
...
Fix some linking, some grammar, some typos, etc.
2022-09-18 18:05:37 +07:00
Paul Masurel
8e775b6c3d
Refactoring dyn Column ( #1502 )
2022-09-02 17:26:30 +09:00
Paul Masurel
5331be800b
Introducing a column trait
2022-08-28 14:14:27 +02:00
Kian-Meng Ang
625bcb4877
Fix typos and markdowns
...
Found via these commands:
codespell -L crate,ser,panting,beauti,hart,ue,atleast,childs,ond,pris,hel,mot
markdownlint *.md doc/src/*.md --disable MD013 MD025 MD033 MD001 MD024 MD036 MD041 MD003
2022-08-13 18:25:47 +08:00
k-yomo
5b564916f0
Add support for keyed parameter in range and histgram aggregations
2022-07-26 04:28:21 +09:00
PSeitz
23fe73a6c0
remove searcher pool and make Searcher cloneable ( #1411 )
...
* remove searcher pool and make Searcher cloneable
closes #1410
* use SearcherInner in InnerIndexReader
2022-07-12 18:07:48 +09: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
PSeitz
6ca5f77466
Merge pull request #1363 from quickwit-oss/refactor_aggregation
...
Add aggregation bucket limit
2022-06-23 10:27:57 +08:00
saroh
e766375700
remove useless example
2022-05-23 19:49:31 +02:00
PSeitz
496b4a4fdb
Update examples/json_field.rs
2022-05-23 12:24:36 +02:00
PSeitz
93cc8498b3
Update examples/json_field.rs
2022-05-23 11:59:42 +02:00
PSeitz
0aa3d63a9f
Update examples/json_field.rs
2022-05-23 11:39:45 +02:00
PSeitz
4e2a053b69
Update examples/json_field.rs
2022-05-23 11:27:05 +02:00
saroh
b2e97e266a
more examples to explain default field handling
2022-05-21 17:36:39 +02:00
Pascal Seitz
b114e553cd
Revert "return result from segment collector"
...
This reverts commit a99e5459e3 .
2022-05-19 16:57:55 +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
a99e5459e3
return result from segment collector
2022-05-12 12:26:43 +08:00
Pascal Seitz
ab6b532cc4
add comments
2022-04-14 12:06:36 +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
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
Pascal Seitz
704498a1ac
rename IntOptions to NumericOptions
...
keep IntOptions with deprecation warning
Fixes #1286
2022-02-21 22:20:07 +01:00
PSeitz
972cb6c26d
Aggregation ( #1276 )
...
Added support for aggregation compatible with Elasticsearch's API.
2022-02-21 09:59:11 +09:00
Paul Masurel
bdedefe07d
Adding an IndexingContext object ( #1268 )
2022-02-04 15:08:01 +09:00
Paul Masurel
eca6628b3c
Minor refactoring ( #1266 )
2022-01-28 15:55:55 +09:00
Shikhar Bhushan
5a2497b6fd
Avoid exposing TrackedObject from Warmer API ( #1264 )
2022-01-25 10:04:08 +09:00
Shikhar Bhushan
99d4b1a177
Searcher Warming API ( #1261 )
...
Adds an API to register Warmers in the IndexReader.
Co-authored-by: Paul Masurel <paul@quickwit.io >
2022-01-20 23:40:25 +09:00
Liam Warfield
17e00df112
Change Snippet.fragments -> Snippet.fragment ( #1243 )
...
* Change Snippet.fragments -> Snippet.fragment
* Apply suggestions from code review
Co-authored-by: Liam Warfield <lwarfield@arista.com >
2022-01-03 22:23:51 +09:00
Paul Masurel
dde49ac8e2
Closes #1195 ( #1222 )
...
Removes the indexed option for facets.
Facets are now always indexed.
Closes #1195
2021-12-02 14:37:19 +09:00
Paul Masurel
7234bef0eb
Issue/1198 ( #1201 )
...
* Unit test reproducing #1198
* Fixing unit test to handle the error from add_document.
* Bump project version
2021-11-11 16:42:19 +09:00
sigaloid
096ce7488e
Resolve some clippys, format ( #1144 )
...
* cargo +nightly clippy --fix -Z unstable-options
2021-08-26 08:46:00 +09:00
Pascal Seitz
0062fe705d
cargo fmt
2021-07-01 18:17:08 +02:00
Pascal Seitz
1e4df54ab3
fix clippy
2021-07-01 17:41:53 +02:00
Bernard Swart
9f32d40b27
Misspelling of misspelled was fixed ( #1078 )
2021-06-14 16:29:12 +09:00
PSeitz
dff0ffd38a
prepare for multiple fastfield codecs ( #1063 )
...
* prepare for multiple fastfield codecs
prepare for multiple fastfield codecs by wrapping the codecs in an enum #1042
* add FastFieldSerializer trait, add DynamicFastFieldSerializer
add FastFieldSerializer trait
add DynamicFastFieldSerializer enum to wrap all implementors of the FastFieldSerializer trait
* add estimation for fastfield bitpacker
2021-05-31 23:14:14 +09:00
Moriyoshi Koizumi
4afba005f9
Provide a means to deal with malformed facet text representation for the query parser ( #1056 )
...
* Provide a means to deal with malformed facet text representation for the query parser.
* Specific error enum for the facet parse error.
2021-05-27 12:16:49 +09:00
Laurent Pouget
4b34231f28
Make facet indexation and storage optional
...
Added a FacetOptions for HierarchicalFacet which add indexed and stored flags to it.
Propagate change and update tests accordingly
Added a test to ensure that a not indexed flag was taken care of.
Added on Value implem the `path()` function to return the stored facet.
2021-03-24 14:56:27 +01:00
Paul Masurel
31137beea6
Replacing (start, end) by Range
2021-03-10 14:06:21 +09:00
Vishal Sodani
6ae96038c2
Fixed spelling
2021-02-08 20:18:45 +05:30
Vishal Sodani
4bcdca8545
Fixed spelling
2021-02-08 19:51:36 +05:30
Paul Masurel
1b4be24dca
Fast field are not loaded on the opening of a segment.
...
They are instead loaded lazily when they are request.
2021-01-21 18:13:08 +09:00
Paul Masurel
80a99539ce
Several TermDict operation now returns an io::Result
2020-12-03 13:13:11 +09:00
Paul Masurel
c23a03ad81
Large API Change in the Directory API. ( #901 )
...
Tantivy used to assume that all files could be somehow memory mapped. After this change, Directory return a `FileSlice` that can be reduced and eventually read into an `OwnedBytes` object. Long and blocking io operation are still required by they do not span over the entire file.
2020-10-08 16:36:51 +09:00
Paul Masurel
848afa43ee
Merge branch 'issue/896' into main
2020-10-01 20:43:42 +09:00
Paul Masurel
7720d21265
Closes #896 - Facet reader related
...
Bugfix. Acquiring a facet reader on a segment that does not contain any
doc with this facet returns `None`.
2020-10-01 20:25:28 +09:00
stephenlagree
5e06e7de5a
Update basic_search.rs ( #865 )
...
Remove duplicated document entry.
2020-08-21 11:23:09 +09:00
Paul Masurel
2481c87be8
Block wand ( #856 )
2020-08-19 22:36:36 +09:00