quickwit
quickwit copied to clipboard
Range queries on fast str field and a dynamic schema are silently ignored
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:
- Create a dynamic schema, e.g. https://github.com/quickwit-oss/benchmarks/blob/main/tracks/generated-logs/index-config.quickwit.yaml
- Ingest documents with text fields (other than
messageexplicit in the schema above), e.g. thegenerated-logsdataset of the benchmark above. - 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:
- Output of
quickwit --versionQuickwit 0.8.0 (x86_64-unknown-linux-gnu 2024-06-06T20:01:05Z 1fd7d0b) - The index_config.yaml https://github.com/quickwit-oss/benchmarks/blob/main/tracks/generated-logs/index-config.quickwit.yaml