fix(qw-search): TopHits aggregations because of unsupported OwnedValue deser with postcard#6088
fix(qw-search): TopHits aggregations because of unsupported OwnedValue deser with postcard#6088Totodore wants to merge 7 commits intoquickwit-oss:mainfrom
Conversation
3a3412f to
d82dfa0
Compare
|
This looks like a reasonable fix. To make sure we won't see regressions and ensure compatibility with ES it would great add an integration test ( |
|
@rdettai-sk I found multiple bugs while testing but it seems to be more on the tantivy side, mostly coming from here:
Can we still merge this and I'll try to propose fixes on the tantivy repo? |
|
Because quickwit is prepending |
|
The top hits result is still not ES compatible, got the test wrong at the first place. I still have issues to make a request that is fully compatible with the quickwit response. |
|
Yes, the currently returned format is not compatible with elastic, and I think that's not good. Es returns But QW returns: Or stated otherwise, |
|
@rdettai-sk I'll ensure the format is ES compatible when refactoring the TopHits aggregation in my Tantivy's PR. |
|
|
@rdettai-sk Is this good to go? |
|
I would rather not merge with the es_compat tests expecting something that is not compatible with ES. It's seems even more confusing than the original behavior which is to just send an error. |
|
Having the nested I think this is better to wait for Tantivy to be es-compatible rather than redefining Tantivy's aggregation response in REST (again) to circumvent this issue. |
Description
The Tantivy
OwnedValueenum used in theTopHitsVecEntrywas triggering a postcardWontImplementerror.Redefine
OwnedValuewith support for postcard de-serialization as well as TopHits result types.Testing
Top hits scenario is ok with quickwit and elasticsearch