J
J
Juniorrrrr2021-11-23 12:16:31
JavaScript
Juniorrrrr, 2021-11-23 12:16:31

How to get information on the query entered by the user in the search?

Hello. The essence of the question is not entirely accurate, I will describe what I mean.

On the one hand, there is a website, on the other hand, a user who enters a query in a search engine.
For example, I entered the text citylink samsung monitor in Google - the result will be sites, including citylink, while clicking on the citylink, it will open a page for me immediately with samsung monitors.

Actually, I have a question, how do sites understand what the user has entered in the search and, depending on this, gives him this or that page?

Or is it not the sites that do this, but the search engine itself gives the user links, then it is not clear how the search engine understands which url to give the user? Well, that is, conditionally, such an online store as citylink has thousands of products and it most likely has dynamic routing, it's not hardcoded, how does the search engine understand the relevance of urls?

Due to the lack of a coherent picture, thoughts are confused, I will be grateful if you tell me what to read on this topic.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey delphinpro, 2021-11-23
@Juniorrrrr

To begin with, pay attention here.
619cb26411c5c012936233.png
Here you can see that the search result immediately returned a catalog page with monitors. Those. The search engine has indexed the site and displays the desired pages in the search results.
This is the concern of the search engine.
To help the search engine identify content more accurately, you can help it.
To do this, there are micro-markup systems.
Citylink uses quite popular schema.org
619cb31e3cbf5863884297.png
This screenshot shows breadcrumb markup. Similarly, there are schemes for marking product cards, addresses of organizations, etc. (see schema.org website and Yandex help).
All these markups allow search engines to index the content of the site more relevantly, as well as display all sorts of additional information. widgets (sections on the site, addresses and contacts right in the search results and all that crap).

T
ThunderCat, 2021-11-23
@ThunderCat

this is not hardcoded, how does the search engine understand the relevance of urls?
Search engines are guided by several parameters: the title of the page on the site, the content of the page itself (in particular, the h1 tag), as well as all sorts of additional features such as micro-markup, sitemap and schema, and the site simply displays this data in a pre-prepared page template in the right places. Everyone understands and loves each other

P
Puma Thailand, 2021-11-23
@opium

Damn, that's not funny anymore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question