Altering Search Behavior in Book Search Demo
TLDR Roshan sought advice on altering an OR search to an AND search. Kishore Nallan suggested using 'drop_tokens_threshold=0' while querying.
Powered by Struct AI
1
6
23mo
Feb 10, 2022 (23 months ago)
Roshan
Roshan
10:43 AMHello guys, I have one question about AND search.
looking at the book search demo I found the search is OR instead of AND, for example if i want to search for a book from author "Harry August", I don't want to results where the date of publication has "August" in it. I don't want to results where one field has "Harry" and another field has "August" Kishore Kishore Nallan
looking at the book search demo I found the search is OR instead of AND, for example if i want to search for a book from author "Harry August", I don't want to results where the date of publication has "August" in it. I don't want to results where one field has "Harry" and another field has "August" Kishore Kishore Nallan
Kishore Nallan
Kishore Nallan
10:53 AMUse 'drop_tokens_threshold=0' to disable this behavior. By default if there are no fields which contain exact value, Typesense will look to drop tokens in the query to find results.
Roshan
Roshan
10:55 AMhow to use this ? while creating index or while querying?
Kishore Nallan
Kishore Nallan
10:55 AMWhile querying.
Roshan
Roshan
10:57 AMI will check
1
10:57
Roshan
10:57 AMok thanks
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Using Google's Embeddings for Document Embeddings
Bill inquired about using Google's embeddings for document embeddings, and Jason confirmed that it is possible.
2
5mo
Overrides/Curation Query and Filtering Docs
Jameshwart sought for filtering assistance, and Kishore Nallan suggested checking the overrides/curation section in the docs.
4
7mo
Embedding Field Concatenation Rules Explanation
Walter inquired about spacing in embedding field concatenation. Jason confirmed that a space is indeed added. Gustavo suggested documenting these rules in the official docs.
3
5mo