T
T
Timur Khudiyev2018-07-04 10:30:14
PHP
Timur Khudiyev, 2018-07-04 10:30:14

How to make content indexed for further search on it?

Good day.
Recently I read an article on Habré about how to make a search in php taking into account morphology. And there was a point about creating an indexing of the site content, in order to search for this table, and not for the articles themselves.
It was also said that using LIKEit is not a good idea if there are a lot of articles or products. That it loads the server.
I would like to understand the general principles of how to do such an indexing? Is it necessary to iterate over each word of the product, discard unnecessary prepositions, conjunctions and write it into the index table and assign each line a product ID?
I know that there is Sphinx and ElasticSearch, but I would like to figure out how it all works, for the purpose of self-education, so to speak :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2018-07-04
@al_gon

The main structure in almost all (99%) modern search engines is an inverted index

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question