Follow the online tutorial installed also started the Sphinx, but completely do not know how it is a mode of operation Ah, how should I use it?
Ask an experienced friend to tell.
Here's my guess:
Spginx installation starts, in the project (in PHP as an example) can introduce the relevant Spginx API, these APIs have query related APIs, usually we use like statement query, with the Sphinx after the query API to query.
Is that right?
So what's going on with these configuration files? What's the use of it?
Beginner sphinx, a bit chaotic, hope to understand people can explain.
Appreciate
Reply content:
Follow the online tutorial installed also started the Sphinx, but completely do not know how it is a mode of operation Ah, how should I use it?
Ask an experienced friend to tell.
Here's my guess:
Spginx installation starts, in the project (in PHP as an example) can introduce the relevant Spginx API, these APIs have query related APIs, usually we use like statement query, with the Sphinx after the query API to query.
Is that right?
So what's going on with these configuration files? What's the use of it?
Beginner sphinx, a bit chaotic, hope to understand people can explain.
Appreciate
First Sphinx is independent of the project and you can understand it as a database.
All data that needs to be searched is stored in sphinx, such as articles, products, users, etc.
The data must be stored in the Sphinx before use.
You can use Sphinx's own indexer to generate an index so that Sphinx gets all the data from MySQL and then stores it in its own index.
You can then invoke the Sphinx API to retrieve the data from the Sphinx.
Generally retrieves the ID of the data from Sphinx and then gets the latest data from the database based on the ID (in case of inconsistent data, such as inventory of goods, the latest price, etc.)
There are a lot of similar products
For example, Foreign Elasticsearch (Https://www.elastic.co/products/elasticsearch)
The homemade Xunsearch (http://www.xunsearch.com) is said to be Segmentfault used Xunsearch
Unlike Sphinx, you need to write a program or script to sync your data to their own index database.