Answer the question
In order to leave comments, you need to log in
How to set up full text search in Sphinx?
Can you please tell me how to properly configure the config to perform full-text search in MySQL?
There is a table in the database with a list of contacts (350000+) columns id, name. Task: find possible typos of full name and display their id. Performed a search using MATCH AGAINST for each full name.
those. I requested a list of full names and for each of them I performed a query in the MATCH AGAINST database.
after iterated over the result using levenshtein in PHP. If there was a difference of 1 character, it was written to the array.
One request took about 1-2 seconds.
The contacts database is updated every 5 minutes.
It was advised to use sphinx to execute queries, but I did not find any information on setting up a full-text search fresh in 2013.
Or is there another way to solve this problem.
A more detailed description of the task How to find and display contacts with possible typos?
Answer the question
In order to leave comments, you need to log in
Well, it's not that simple.
You need to install sphinxsearch on the server.
Create a config for it that will work with the database, specify in the config that sphinxsearch should index. Hang up launching it on kroner.
And then, in the php project, interact with sphinx.
This can't be described in a nutshell, you'll have to read the documentation from sphinx and from php .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question