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
5
19mo
Jun 14, 2022 (19 months ago)
Phillip
Phillip
05:32 PMWhat changes when you specify a field as
facet: true
? Does it somehow change how that field is stored?Jason
Jason
05:37 PMYup, there's an additional facet index that's constructed in-memory for that field, to help perform aggregations efficiently
1
Phillip
Phillip
05:56 PMThanks!
1
05:56
Phillip
05:56 PM Viji Willian
1
Willian
Willian
05:57 PMGood to know, thanks!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Reducing Memory Usage in Large Dataset Indexing
Alan asked for an article on reducing memory usage when indexing large datasets. Jason provided general tips without sharing an article.
2
7mo
Optimizing Schema and Reducing Memory Usage
Shaun faced issues with memory usage when adding a new field to a schema. Kishore Nallan advised optimizing the schema by disabling unnecessary facets and sorting options to reduce memory usage.
56
5mo
Discussing the Impact of Making Every Field a Facet Field
Andrew inquired about the performance cost of making all fields facet fields. Jason explained it consumes more memory and advised benchmarking for decision-making.
3
35mo