R
R
Roman2016-04-05 12:23:02
PHP
Roman, 2016-04-05 12:23:02

How to implement a search on the site?

It is necessary to implement a search on the site using the database tables, the classic option is, of course, LIKE. But with an increase in the number of records, I think it will work slowly.
And what are the more advanced methods for this task, especially for High load?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2016-04-05
@opium

well, you have the sphinx and elasticsearch right in the tags

T
ThunderCat, 2016-04-05
@ThunderCat

like this is slightly wrong, with a serious volume it's generally f*ck,
FTS is our answer to Chamberlain!

A
Alexander Aksentiev, 2016-04-05
@Sanasol

As usual, the answer in the
LIKE question is quite a normal option, first you need to live up to the Highload (hundreds of gigabytes of data, and preferably terabytes).
But it depends on the task: exact search, inexact search, maybe the user needs to be found in the admin panel, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question