Resolving Search Query Issue for Nearest Product Selection
TLDR Ramees asked for help on product search query problem. Jason provided a solution, which Ramees confirmed as successful.
1
1
Aug 23, 2021 (27 months ago)
Ramees
05:05 PMWhen performing search, result should show the nearest product which match with query term.
query:
search?q=SEARCHTERM&query_by=name&filter_by=location:(LOCATION,RADIUS)&sort_by=location(LOCATION):asc
But the sorting is always show the nearest product first regardless of the match.
I tried setting num_typos=0. It works. but even a slight mistake omit the product from response
Is there any way to get the desired result?
Jason
05:14 PMsearch?q=SEARCHTERM&query_by=name&filter_by=location:(LOCATION,RADIUS)&sort_by=_text_match:desc,location(LOCATION):asc
Ramees
05:14 PMRamees
05:15 PM1
Ramees
05:18 PMRamees
05:19 PMJason
05:19 PMJason
05:19 PMRamees
05:19 PM1
Typesense
Indexed 2779 threads (79% resolved)
Similar Threads
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.
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.
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.
Troubleshooting Typo Highlighting in Search Queries
Stefan queried "chews" and "Roche", despite having a typo distance of 4, was highlighted. Kishore Nallan requested to test on v0.20 RC. Random results like "Sachets" and "Lachesca" were also highlighted. On single record query, highlighting works. Kishore Nallan assured to address this issue in the pending release.
Resolve Facets and Sorting Issues with Typesense
Ethan needed assistance with getting all facet values and sorting results by date using Typesense. Jason provided guidance on how to use Typesense properties to accomplish these tasks, and resolved issues related to specific use-cases provided by Ethan and Rushil.