ExistQuery may not be accurate when relying on fast-field

オープン
#6,288 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
search

調査の方向性

255バイトを超える値を含む raw fast field で問題を再現し、その後 field:* と NOT field:* を field:"github" のような term query と比較します。まず fast-field パスと index_field_presence との相互作用を追跡します。完了条件は、存在クエリが正確なままで、term query も引き続き機能することです。

索引モデルが issue の本文から書いたものです。

説明

bug
Describe the bug

ExistQuery such as field:* can be wrong when they are satisfied from fast-field storage instead of index_field_presence.
When fast field normalizer is set to raw, the fast-field path treats the whole string as one token and drops values longer than 255 bytes, so nothing is written to the fast column for those docs.
Queries like NOT field:* can then exclude documents that do have field in the source JSON, while term queries on the same field (e.g. field:"github") still work because they use the inverted index.

Suggestions:

Maybe instead of dropping the values we could truncate the values, this will break ordering on that fast column but at the moment with the logic of dropping, it's already broken.

Quickwit version
  • Quickwit 0.8.2
  • Latest dockerhub image (quickwit/quickwit:edge-slim-bookworm)
主要言語
Rust
スター
11.8k
フォーク
628
平均マージ
2日 22時間
マージ済み PR(30日)
50

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quickwit-oss/quickwit のほかの issue

quickwit-oss/quickwit の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。