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

How do you handle words data synchronization? #7

Open
Morriaty-The-Murderer opened this issue Jul 16, 2019 · 1 comment
Open

How do you handle words data synchronization? #7

Morriaty-The-Murderer opened this issue Jul 16, 2019 · 1 comment

Comments

@Morriaty-The-Murderer
Copy link

Hi, this question may not be only related to the library itself but the whole system structure.

In real production, the words source may come from search index and user queries, which changed quickly. Imagine some product called nidas were off shelves minutes ago. The suggestor nid returns nidas but the searcher returns no results.

If you separate the search module and suggest module, how do you make sure that the data are consistent.

Thanks for you time!

@seperman
Copy link
Owner

Hello @Morriaty-The-Murderer
Fast-Autocomplete does not have a live update to the graph feature yet. I have some plans to allow live updates and "syncing" but not implemented it yet.

However a better approach for your problem might be if a user types nid, whether you have the product or not you should still let them know that you understand what they want by showing nidas in the autocomplete results. The searcher won't have nidas exactly but it can show:

  1. Here are some products similar to nidas
  2. Users who searched for nidas also searched for X, Y and Z which we do have.

Hope that helps.
P.S. Nice username.

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

2 participants