It is necessary to write a quick search on several columns of the table at the same time with smart sorting (each result should have its own weight, or what term is more correct here?). Example: we have a table Animals with columns (View, Name).
Животные ID Вид Имя 1 кот Пушок 2 кот Котофей 3 кот Рекс 4 пес Рекс 5 пес Пуш Request examples:
"Рекс" (Id, вес): `3:1; 4:1.` "пес Рекс" (Id, вес): `3,1; 4, 2.` "кот" (Id, вес): `1:1; 2:1; 3:1` "кот пес" : `1:1, 2:1, 3:1, 4:1`. "котпес" : `null` (или все результаты, если это не сложно реализовать). "пес котофей" : `2:1`. "Рекссссс": `null` (4:1 , если это не сложно реализовать). "пуш": 1:1, 5:1 (1:0.5, 5:1 , если это не сложно реализовать). It is also important that everything works quickly, acceleration sops, etc.
Tell me where to look and / or a quick example, please.
UPD2 . I forgot to write, we need incomplete coincidences (it is desirable that they are more in weight than complete ones, but if this makes it difficult, even if incomplete matches weigh as complete ones). Updated the list of products above.