Topic on Extension talk:SphinxSearch

What is the difference between Ranking, Sorting, Matching modes and Filtering in Sphinxsearch?

2
Ankitgoyal91 (talkcontribs)

I want to know what is the difference between ranking, sorting, matching modes and filtering in Sphinx and how can I do more than one thing at a time.

In documentation also, it is written you can do ranking and sorting simultaneously. How is it possible because if I rank then results will be arranged in some order and if I do sorting the results will be arranged in some different order.

If possible please explain using some example. I am using version 2.1.9.


Please don't refer me to Sphinx documentation. I have already read it.

Every answer is appreciated.

Thanks in advance.

Svemir Brkic (talkcontribs)

Ranking controls how the weight of each match is calculated. Sorting will by default sort by that ranking, but you can use advanced sorting mode to sort by things other then the ranking (or by something else in addition to the ranking, so that two articles with the same @weight are further sorted by something you specify, such as page_title or old_id.)

Filtering will filter things out not to show at all, so in the above scenarios it happens first, and therefore you can filter "at the same time" with ranking and sorting.

Reply to "What is the difference between Ranking, Sorting, Matching modes and Filtering in Sphinxsearch?"