Facet Exclusion in Typesense Query
TLDR Kyle asked if there was a way to exclude results from a specific facet in Typesense query. Kishore Nallan asked for sample docs and exact query to better understand the question.
Feb 09, 2023 (7 months ago)
Kyle
09:34 PMNikon
I would expect to get back results from Camera & Lens but not Film because Nikon isn't a film manufacturer. However my current query still returns results for the Film facet like Kodak Gold
because some documents have a Nikon camera and lens but on Kodak film. Is there any way to enforce this exclusion so that the Film facet would show 0 results because there is no text search result in that specific facet that matches our query of Nikon
?To elaborate just a bit further the query
Kodak Gold
should also just return Film hits and not any results for Camera or Lens because they aren't text matches. I can break up the search for just those specific facets but I would like to not have to do multiple hits to the typesense dbFeb 10, 2023 (7 months ago)
Kishore Nallan
11:38 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Excluding Specific Documents in Typesense Results
Alexander asked how to exclude specific documents in Typesense search results, and Jason suggested using the hidden_hits search parameter and multi_search for large lists.
Faceting issue with Products Collections in Typesense
Carl was unable to facet on a string array. Kishore Nallan and Jason advised ensuring facet counts were being returned and offered to assist in troubleshooting. Issue resolved upon Carl realizing no data was saved in the database.



Facet Groups Filtering with Typesense and Instantsearch.js
Cristopher was having issues with faceting on Typesense and sought advice. Kishore Nallan and Jason provided recommendations and resources. Cristopher finally resolved the issue by switching to instantsearch.js.
