-
Notifications
You must be signed in to change notification settings - Fork 538
error message for unquoted TermQuery over datetime field is unhelpful #3409
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
TermQuery and TermSetQuery are not parsed properly when using the search api. Term works fine when using the ES compatible api.
Steps to reproduce (if applicable)
Steps to reproduce the behavior:
- create an index with a datetime field
- run a query such as
created_at:[2022-05-01T15:19:33Z TO 2022-05-01T15:19:33Z], it works - run a query such as
{"query":{"term":{"created_at":{"value":"2022-05-01T15:19:33Z"}}}}on the ES api, it works - run a query such as
created_at:2022-05-01T15:19:33Z, you get an error:Error: { "message": "Internal error:Failed to parse query:created_at:2022-05-01T15:19:33Z.`." }
Expected behavior
the request should succeed.
Configuration:
Please provide:
- Output of
quickwit --version - The index_config.yaml
version: 0.4
index_id: gh-archive-numericid-light
doc_mapping:
field_mappings:
- name: id
type: u64
fast: true
- name: org
type: json
tokenizer: default
type: datetime
fast: true
input_formats:
- rfc3339
precision: seconds
timestamp_field: created_at
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working