Facet Update Delay in Document Querying
TLDR Dan experienced delays in querying updated facet values. Kishore Nallan clarified these should be immediate unless in clustered mode.
Powered by Struct AI
1
1
4
18mo
Jun 21, 2022 (18 months ago)
Dan
Dan
11:39 AMAfter updating a facet value for a document, how long does it take before the facets are updated when querying? For context - we’re updating a tag facet on a document as part of an API call, and would then like to fetch the new facets, but they appear to be still out of date.
1
11:43
Dan
11:43 AMis there any way to make the request only complete when the facets collections are updated?
Kishore Nallan
Kishore Nallan
12:41 PMThe write is complete as soon as the write API call succeeds. Any reads after that should immediately start seeing the updated value. In clustered mode it might take a couple additional seconds for all nodes to get it.
1
Dan
Dan
12:42 PMthank you, i’ll debug further, that’s helpful!
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Faceting of `id` and `updated_at` Fields Discussion
Viktor asked if ids and timestamps should be faceted. SamHendley advised to not facet them unless needed specifically due to performance issues.
6
11mo
List of Facets in Collection and Version Update
arif wants to get a list of all facets in a collection. Jason suggests using `facet_by: *` and clarifies that removing all records with a particular attribute won't remove the field from the schema. Upgrading to the latest version should be scheduled manually.
8
6mo
Understanding Facet Results Updating in Typesense
Emile asked about updating facet results in Typesense. Jason clarified that an additional search is required after filtering.
4
16mo