Sphinx searches the index mainly in the following steps:
1. The user enters a query statement.
2. Perform lexical analysis, syntax analysis, and language processing on the query statement.
3. Search the index and obtain documents that conform to the syntax tree.
4. Sort the results according to the relevance of the obtained documents and query statements.