quickwit-oss / quickwit-oss/quickwit

Aggregations do not work on a field declared as fast with a parent field is a JSON field with `fast: false`

Open
#3,896 1 comment 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

Minimal reproducible example:

version: 0.6

index_id: test

doc_mapping:
  field_mappings:
    - name: timestamp
      type: datetime
    - name: raw_line
      type: json
      tokenizer: default
      fast: false
    - name: raw_line.statusCode
      type: u64
      fast: true

indexing_settings:
  commit_timeout_secs: 10

Ingest the document:

{"timestamp": 1695934164, "raw_line": {"statusCode": 100, "body": "this is the body"}}

Then execute the term aggregation:

{
  "query": "*",
  "aggs": {
     "my_term": {
        "terms": {
           "field": "raw_line.statusCode"
        }
     }
  }
}

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 the YAML mapping, ingested JSON document, and terms aggregation shown in the report. Trace how the JSON parent field and fast child field are mapped and used by aggregations; done means the raw_line.statusCode terms aggregation returns the indexed value without breaking the parent field configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.