quickwit icon indicating copy to clipboard operation
quickwit copied to clipboard

Range queries on fast str field and a dynamic schema are silently ignored

Open RaphaelMarinier opened this issue 2 months ago • 0 comments

Describe the bug Range queries on an str fast field that is dynamically created based on indexed documents (dynamic schema) seem to be silently ignored. See also #5090 where such queries fail when the str fast field is explicit in the schema.

Steps to reproduce (if applicable) Steps to reproduce the behavior:

  1. Create a dynamic schema, e.g. https://github.com/quickwit-oss/benchmarks/blob/main/tracks/generated-logs/index-config.quickwit.yaml
  2. Ingest documents with text fields (other than message explicit in the schema above), e.g. the generated-logs dataset of the benchmark above.
  3. Query that field:
quickwit index search --index generated-logs  --query 'trace_id:[abc TO def]' | grep trace_id
"trace_id": "3579345088981071944"
 "trace_id": "3099098393060003496"
 "trace_id": "7455985833741068554"
 "trace_id": "8397828520949179503"
 "trace_id": "452393755932269140"
 "trace_id": "4372017533496144022"
 "trace_id": "3838521724700584677"
 "trace_id": "8729677587882026026"

Expected behavior Similarly to #5090, I expected such queries to be either supported, or disallowed in documentation and returning an error instead of being silently ignored.

Configuration:

  1. Output of quickwit --version Quickwit 0.8.0 (x86_64-unknown-linux-gnu 2024-06-06T20:01:05Z 1fd7d0b)
  2. The index_config.yaml https://github.com/quickwit-oss/benchmarks/blob/main/tracks/generated-logs/index-config.quickwit.yaml

RaphaelMarinier avatar Jun 07 '24 10:06 RaphaelMarinier