L
L
lynnikvadim2015-10-06 11:53:59
Laravel
lynnikvadim, 2015-10-06 11:53:59

Site search in Laravel?

How can I organize a site search on Laravel?
Are there packages for this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2015-10-06
@OnYourLips

If a simple full-text search, then by standard means.
If it is complex, then you need to use elasticsearch, there are packages for interacting with it.

Y
yuras666, 2015-10-06
@yuras666

There are several options here. It depends on what search and what site). The simplest WHERE LIKE %% , however, will be slow on large volumes. In MySQL with the MyISAM engine, there is the possibility of full-text search, there is just an article in conjunction with laravel. You can write your own simple solution: store a table in the database with words and links to entities in which these words are present. And of course, more advanced solutions are sphinx or elasticsearch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question