R
R
Rag'n' Code Man2021-06-07 01:31:29
JavaScript
Rag'n' Code Man, 2021-06-07 01:31:29

How is autocomplete implemented in search engines, or, for example, in the same npmjs.com?

I am making a CRM system for an online school and I want to search for students and groups, but since in theory there can be 1000, 2000, 5000, I don’t really want to draw all this on one page and do a search there.

The problem with rendering is solved by pagination and limits, but what about the search?

How are results suggestions implemented in search engines or, as I said, on the npm site ?

Is it really there that after each keystroke a query is made to the database, then a fuzzy search algorithm is applied and finally sent to the user?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2021-06-07
@iDmitriyWinX

Yes, but most likely the delay in sending a request to the server is also used. Well, to wait if the user presses another letter.
And of course query caching.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question