Project search function, to use Sphinx, ask a few basic questions OH

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.