Using String* Field as Facet Field in Typesense
TLDR Johnny asked about using a string* field as a facet field in Typesense. Jason provided an alternative solution.
Powered by Struct AI
1
3
2mo
Solved
Sep 18, 2023 (2 months ago)
Johnny
Johnny
05:33 AMHi everyone, I wondering is it possiable to use a string* field as facet field, such as I have a multi-value field called productType, and one product will contains serveral types, I use string* as its field type and put ["a","b","c"] as its value. but finnally I only get 1 facet called "["a","b","c"]" but no "a", "b", "c". Does someone have some experience with it, thanks a lot in advance!
Jason
Jason
02:23 PMThis is not possible to do in Typesense.
Instead of an array of values, you could create a field with
Instead of an array of values, you could create a field with
a-b-c
and facet on thatSep 19, 2023 (2 months ago)
Johnny
Johnny
01:25 AMthank you!
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3011 threads (79% resolved)
Similar Threads
Troubleshooting Import API Errors in Typesense
Atul was having trouble with import API errors, which Jason suggested might be due to a bug or missing fields. Upgrading solved the import issue but led to new problems with schemas and facet attributes.
12
1mo
Clarification on Faceting and Grouping in Typesense
Carlo asked about faceting and grouping in Typesense. Kishore Nallan clarified their operation, suggesting they account for grouping while calculating on the whole set.
4
1mo
Solved
Faceting High Cardinality Field for Grouping in Data
Jack questioned faceting a high cardinality field for grouping, Kishore Nallan confirmed it is fine except for additional memory use.
6
2mo
Solved