*Needing Clarification about Facets: i*n the examp...
# community-help
j
*Needing Clarification about Facets: i*n the example https://typesense.org/docs/0.20.0/guide/building-a-search-application.html#sample-dataset I see that for each record the sample books dataset adds 2 facet fields:
publication_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?
j
Good catch. That's actually an old dataset that we generated back when you had to define facet and non-facet fields separately and essentially duplicate the data 😨 We've since addressed this in the past year or so, so now you can just use one field and set
facet: true
on it
Adding this to our backlog to fix the dataset
👍 2
j
OK, cool! Thanks mate!🙂