quickwit-oss / quickwit-oss/quickwit

fields set under tag_fields do not accept a search with negation operator

Open
#5,319 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

If a field is added to tag_fields in Index configuration, a search operation with a negation operator does not retrieve any results

Example:

"tag_fields": [
    "fgt.subtype"
  ]

altought forward and local are values for fgt.subtype, a negate search for any of those values returns no results.
tag fields do not take negate search

-fgt.subtype:local should return all documents with fgt.subtype:forward

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with an Index configuration containing tag_fields: ["fgt.subtype"] and a negated query such as -fgt.subtype:local. Trace how tag fields are indexed and evaluated for negation; done means the query returns documents with fgt.subtype:forward while excluding local.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.