Excluding Documents in Search Results Based on Criteria
TLDR Jameshwart wanted to exclude certain documents in search results. Elian provided a link for assistance and Jason gave advice on overriding preset parameters.
1
Nov 20, 2023 (1 week ago)
Jameshwart
07:50 AMfor example by default I don't want to have a product in the response if the product status is draft/pending/trash so by default only publish products be the response. Unless i specified that I want a draft product to be the result
Jason
04:49 PM1
Typesense
Indexed 3005 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.
Implementation and Optimization of 'Similar Products' Feature
Stefan is considering using "curation" for pre-calculating similar products. Kishore Nallan suggests using preset API, but Stefan raised an issue with sorting based on non-stored values. The issue remains open for resolution.
Retrieving Multiple Documents by ID in Typesense
Bruno asked about retrieving multiple documents by ID in Typesense. Jason suggested using `filter_by: id:=` and gave advice on POST requests and order preservation. Bruno successfully implemented these solutions.