Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search giving wrong results / typing "ama" is interpreted as "amd" #1296

Open
wondering639 opened this issue Jan 7, 2025 · 1 comment
Open

Comments

@wondering639
Copy link

wondering639 commented Jan 7, 2025

Description

I created a sample application following on https://www.algolia.com/doc/ui-libraries/autocomplete/integrations/using-react/
When I type "ama" like "Amazon", I only get "AMD" as result, very confusing. see the following video:

wrong_results_codesandbox

Find the sandbox at https://codesandbox.io/p/sandbox/sy2vq6

Reproduction

Find the sandbox at https://codesandbox.io/p/sandbox/sy2vq6
Steps

  1. Create React TS project
  2. install @algolia/autocomplete-js @algolia/autocomplete-plugin-query-suggestions @algolia/autocomplete-plugin-recent-searches @algolia/autocomplete-theme-classic algoliasearch (yes, that might be more packages than needed)
  3. Copy & paste from https://www.algolia.com/doc/ui-libraries/autocomplete/integrations/using-react/ (need to fix one import: import algoliasearch from 'algoliasearch'; had to be changed to import { algoliasearch } from 'algoliasearch';)

Expected behavior

matching search results ;-)

Environment

  • OS: [e.g. Windows / Linux / macOS / iOS / Android] Windows
  • Browser: [e.g. Chrome, Safari] Chrome
  • Autocomplete version:
    "@algolia/autocomplete-js": "^1.17.9",
    "@algolia/autocomplete-plugin-query-suggestions": "^1.17.9",
    "@algolia/autocomplete-plugin-recent-searches": "^1.17.9",
    "@algolia/autocomplete-theme-classic": "^1.17.9",
    "algoliasearch": "^5.19.0",
@wondering639
Copy link
Author

looks like its coming in wrong from the server:
request:
image
reply:
image

Doesn't make things less strange though. Note when I continue typing to "amaz", results are then again correct. but not for "ama".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant