N
N
NikSIk312019-07-16 20:43:37
Laravel
NikSIk31, 2019-07-16 20:43:37

PHP how to search database?

Greetings! The task is this: you need to make a good search in the database so that words and combinations are entered in the field on the site and he can find from the column in the database even if these words are not next to each other. There will also be other fields on the site that set parameters. It is necessary that they are also taken into account if selected. What is worth google to organize it, preferably with a good dock so that you can figure it out and integrate with Laravel.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zorca, 2019-07-16
@zorca

Laravel Scout

T
trckster, 2019-07-17
@trckster

Maybe a search engine like Sphinx is right for you

V
Vladislav, 2019-07-19
@vos_50

If you have Postgre as a database, then it has full-text search out of the box, which is great friends with Scout .
If there is another database, then look towards Elastic or Sphinx , which are also very easy to make friends with Laravel.
If you have any questions I'm ready to answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question