Understanding Purpose of Facet Fields in Typesense
TLDR John sought clarification about the use of facet fields in Typesense. Jason clarified that while previously dataset needed both facet and non-facet fields, this is now redundant.
2
May 20, 2021 (33 months ago)
John
01:11 AMpublication_year_facet
and authors_facet
, additionally to the puclication_year
and authors
fields. Sure, I saw that the sample schema defines these two fields as facet fields... but does that enforce these two _facet
fields to be always included? What is the purpose of these _facet
fields, since in the sample dataset they seem to always be a copy of the non _facet
ones?Jason
01:16 AMWe've since addressed this in the past year or so, so now you can just use one field and set
facet: true
on itJason
01:17 AM2
John
01:28 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Release and Features of Typesense v0.20
Jason announced the Typesense v0.20 release and its new features. Mica inquired about the schema and was informed that new fields can be added without reindexing. Alex congratulated the team.
Querying Unique Field Values in Typesense
Sruli asked if Typesense could query unique values in a field. SamHendley clarified that facets could be used for this purpose.
Facet Count Discrepancy in Integration Testing with Typesense
SamHendley faced an issue with inconsistent facet counts and found it was due to mixed case input and punctuation. Kishore Nallan confirmed that Typesense normalizes values before indexing, affecting the facet count. They then discussed addition of preconditioning data to match Typesense.