Leading-`-` / bool.must_not matches documents where the field is absent
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
実装ファイルやテストは指定されていません。まず、先頭の - と bool.must_not に関するクエリパーサーおよび評価器の経路を追跡し、次に2ドキュメントのケースを再現してください。選択した欠落フィールドのセマンティクスが回帰テストでカバーされ、文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
Quickwit's leading-- operator (and bool.must_not) matches every document where the inner clause evaluates false, including documents that don't contain the field at all. This differs from both SQL WHERE NOT x = 'foo' (which excludes NULLs) and Elasticsearch must_not (which excludes missing-field docs).
Repro
Index two docs: {"vendor": "aws"} and {} (no vendor field).
curl -sS "$QW/api/v1/<index>/search?query=-vendor:aws"
# → returns BOTH docs.
# Elasticsearch must_not on the same data returns only the {} doc.
# SQL `WHERE vendor <> 'aws'` returns NEITHER (NULLs excluded).
Expected behavior
Either align - / must_not with SQL+ES semantics (field != value AND field exists), or expose a separate operator with that semantic (field:!value, must_not_exists, etc.) and document the distinction.
Why this matters
Every "does not equal" predicate in a user-facing query layer has to be wrapped in an explicit existence guard (field:[* TO *] AND -field:value) to get expected behavior. The existence guard itself is fragile because the right "exists" syntax varies by field type (see related: field:* silently zero when index_field_presence: false).
Version
Observed on 0.8.x.
- 主要言語
- Rust
- スター
- 11.8k
- フォーク
- 628
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 50
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quickwit-oss/quickwit のほかの issue
-
area:otel documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
quickwit-oss/quickwit#6686 ·
メンテナーはふだん 1 日以内に返信
-
Add some examples of requests in the REST API reference docs対応中かも @Cunninger が 88 日前に担当しました。 オープンenhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
quickwit-oss/quickwit#4266 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
quickwit-oss/quickwit#3872 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
quickwit-oss/quickwit#3666 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
quickwit-oss/quickwit#2769 ·
メンテナーはふだん 1 日以内に返信
quickwit-oss/quickwit の issue をすべて見る
似ている issue
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)対応中かも @G-darshan-32 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
clipy-recorder/clipy#164 · コメント 1 件 ·
-
p2 ready-mac
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
quickwit-oss/tantivy#3299 ·
メンテナーはふだん 1 日以内に返信
-
P2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
arcships/dim#2294 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`stream enable` fails with "already enabled" on every fresh session since streaming became always-onオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vercel-labs/agent-browser#2797 ·
メンテナーはふだん 1 日以内に返信