Potential Bug with "query_by" Parameter in Search Query
TLDR Anton found a potential bug where the search query doesn't return all matches using the "query_by" parameter. Kishore Nallan offered to analyze this issue further with a sample dataset.
Oct 25, 2021 (27 months ago)
Anton
08:50 AMI think i found bug when using "query_by" parameter. It seems that the search does not return all the matched results...
I have a collection containing 6 items matching this search query:
/collections/cmspages/documents/search?q=rade/homepage-boxes-&query_by=uri&filter_by=type:1&prefix=true&num_typos=0&per_page=10&include_fields=[uri]
But i get only 4 results. Then i try to adjust the "filter_by" statement to explicitly include the missing uri:
/collections/cmspages/documents/search?q=rade/homepage-boxes-&query_by=uri&filter_by=type:1 %26%26 uri: rade/homepage-boxes-gerichte&prefix=true&num_typos=0&per_page=10&include_fields=[uri]
And i get the missing item back!! Something is wrong here. I'm free for screenshare if it is needed
Kishore Nallan
08:51 AMTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
Fixing Multiple Document Retrieval in Typesense
Phil needed an efficient way to retrieve multiple documents by id. Kishore Nallan proposed a solution available in a pre-release build. After some bug fixing regarding id matching by Jason and Kishore Nallan, Phil successfully tested the solution.
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.
Configuring InstantSearch.js Parameters and Comparing Search Results
John is having difficulty configuring InstantSearch.js parameters. Jason suggested how to utilize `facet_by` and `filter_by` widgets and advised checking network for search parameters. They also asked John to open an issue on the unexpected need for manual `_text_match` addition.