Optimizing Database Search Using k Value and flat_search_cutoff
TLDR Koushik wanted to optimize a brute force search in a database using k value and flat_search_cutoff and also needed help with "filter_by" parameter. Kishore Nallan provided guidance and directed Koushik to relevant documentation.
Jul 28, 2023 (2 months ago)
Koushik
11:19 AMref ::
{"searches":[{"q":"*", "filter_by": "category:shoes", "vector_query": "vec:([0.96826, 0.94, 0.39557, 0.306488], k:100, flat_search_cutoff: 20)" }]}'
Another point is how I could supply multiple combination in "filter_by",
like "filter_by": "category:shoes, meterial:leather,make:india"
Kishore Nallan
11:21 AMKoushik
11:25 AMI understood flat_search_cutoff would be the number of expected items. but how k value associates with the query ?
Kishore Nallan
11:26 AMKoushik
11:27 AMKoushik
11:30 AMlike "filter_by": "category:shoes, meterial:leather,make:india"
Kishore Nallan
11:30 AMKishore Nallan
11:30 AMKoushik
11:36 AMKishore Nallan
11:51 AMKoushik
12:35 PMKoushik
12:36 PMeven if I am giving 5 for both query returning 10 documents.
Kishore Nallan
12:37 PMKishore Nallan
12:37 PMKishore Nallan
12:37 PMKoushik
12:38 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Integrating Semantic Search with Typesense
Krish wants to integrate a semantic search functionality with typesense but struggles with the limitations. Kishore Nallan provides resources, clarifications and workarounds to the raised issues.
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.
Multiple Filters and JSON Requests in Typesense
Manish asked about multiple filter_by arguments, JSON input, and using multisearch. Jason offered typesense documentation links, examples, and how to use JSON formatted requests with multisearch. Ed shared a similar use case.
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.