#community-help

Understanding `facet: true` in Field Specification

TLDR Phillip asked about the effect of facet: true in fields, to which Jason explained about the additional facet index construction in-memory for efficient aggregations.

Powered by Struct AI

3

Jun 14, 2022 (19 months ago)
Phillip
Photo of md5-3d8346de287401da0aaa8b11cddb1db7
Phillip
05:32 PM
What changes when you specify a field as facet: true? Does it somehow change how that field is stored?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:37 PM
Yup, there's an additional facet index that's constructed in-memory for that field, to help perform aggregations efficiently

1

Phillip
Photo of md5-3d8346de287401da0aaa8b11cddb1db7
Phillip
05:56 PM
Thanks!

1

05:56
Phillip
05:56 PM
Viji Willian

1

Willian
Photo of md5-7d2796ababc14477f4c09abc2e8edb05
Willian
05:57 PM
Good to know, thanks!