How can Sphinx do its sort so fast?

Say I'm looking for a "baby." Sphinx will capture all documents that have a “child” in it, and then sort it using my own algorithm. (ADVANCED mode).

The question is, how can it sort so fast? How does it capture millions of records and then sort them in milliseconds?

+3
source share
1 answer

Oh, you ask about magic. Sphinx (and Lucene and many other search engines) use an inverted index .

, ; , . . , . .

+9

Source: https://habr.com/ru/post/1773451/


All Articles