Laravel-Searchy | Laravel Searchy | Search Engine library
kandi X-RAY | Laravel-Searchy Summary
kandi X-RAY | Laravel-Searchy Summary
Unmaintained: Laravel Searchy makes user driven searching easy with fuzzy search, basic string matching and more to come!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new driver instance .
- Build select query .
- Run the search .
- Setup the configuration .
- Register the search builder class .
- Set searchable table .
- Build query string .
- Format search string .
- Returns the facade accessor .
Laravel-Searchy Key Features
Laravel-Searchy Examples and Code Snippets
Community Discussions
Trending Discussions on Laravel-Searchy
QUESTION
This question may like a duplicate question but I’m giving it back because I couldn’t perfect a solution.
Sorry for that.
Now I'm working on a drug search engine. The user cannot always enter the exact drug name. Depending on the characters entered by the user, I need to get a better result for them. But now it is not. How should I do to do result more accurately? For example, there is information in DB: Анальгин, Цитрамон-П, Лирика-75мг
, etc. ... (in Crylic). If the user enters in the Latin alphabet, the system converts it to the Cyrillic alphabet and searches through it. So, I need that: Even if the user enters words in Цитрамон, cитрамон, ииттрамон or cтрамон
, the result should return Цитрамон. Or if user enter: Лирика, ЛЛЛирика, иииррика, Лика or Лирик
, the result should return Лирика. Or Аналгин, Анагин ...
should returns Анальгин.
I should get similar results. I tried several search algorithms and packages (Laravel-Searchy, Laravel Scout, TNTSearch and etc) but to no avail. Now a search is working but the results are returning the same as in a SQL LIKE operator. Also, I tried with Levenstein distance as follow as:
My search variable:
ANSWER
Answered 2020-Sep-04 at 17:26This will be very hard to solve in the way you are trying. You need a full text search engine like Sphinx or elastic search. That has support for languages and fuzzy search. More info about it here: https://en.wikipedia.org/wiki/Full-text_search
I recommend Sphinx: http://sphinxsearch.com/docs/sphinx3.html#features-overview
The documentation is however very heavy. Another option is elasticsearch that has very good documentation.
Try to invent this your self will be very tricky and you will take time to get good result.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Laravel-Searchy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page