quickwit icon indicating copy to clipboard operation
quickwit copied to clipboard

aggregation does not work on inner field

Open fulmicoton opened this issue 2 years ago • 2 comments

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.

fulmicoton avatar Apr 25 '23 12:04 fulmicoton

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.

fulmicoton avatar Apr 26 '23 04:04 fulmicoton

I think this is a duplicate of https://github.com/quickwit-oss/quickwit/issues/3896

PSeitz avatar Oct 22 '24 02:10 PSeitz