typesense-autocomplete-demo
typesense-autocomplete-demo copied to clipboard
Suggestion query setting
Hi there!
Example query: mac and macb
How can I configure the response to be like this? --> https://codesandbox.io/s/meilisearch-autocomplete-suggestion-0yw3rg?file=/app.tsx
Meilisearch example screen:
Typesense example screen:
that is, the answer was only to the end of the word.
Could you try setting prioritize_token_position: true as a search parameter?
@jasonbosco
Result is same: const results = await typesenseClient.collections('products').documents().search({ q: query, query_by: 'name', highlight_full_fields: 'name', include_fields: 'name', prioritize_token_position: true, })
Oh wait, I just realized the dataset used by the Typesense demo does not have any MacBook products in the results.
The datasets you have in your screenshots are different, so that's why you don't see any MacBook results.
@jasonbosco
Thanks for the link to the dataset! This weekend I will test meilisearch with your dataset)
Pls do not close until the result!)