quickwit
quickwit copied to clipboard
aggregation does not work on inner field
It is not possible to run an aggregation on actor.login on gharchive with
- name: actor.login
type: text
fast: true`
in the docmapper
The cause is not identified yet.
The following however works:
version: 0.5
index_id: gharchive
doc_mapping:
mode: lenient
field_mappings:
- name: type
type: text
fast: true
- name: actor
type: object
field_mappings:
- name: login
type: text
fast: true
Fields with a "." do not seem to work at all. e.g.:
- name: actor.login
type: text
fast: true`
This ends up as a tantivy schema with a field actor\.login.
An ingested JSON like
{"type":"hello","actor.login":"fulmicoton"}
or
{"type": "hello", "actor": {"login":"fulmicoton"}}
Both documents do not record actor.login.
I think this is a duplicate of https://github.com/quickwit-oss/quickwit/issues/3896