Sphinx PHP API order differs from Search Daemon

后端 未结 1 1179
一个人的身影
一个人的身影 2021-01-26 07:47

I\'ve setup Sphinx and having an issue with the PHP API ordering returning - the search daemon returns the correct array response however the PHP API seems to returns in ID orde

相关标签:
1条回答
  • 2021-01-26 08:15

    seems like search tool defaults to bm25 ranking . Try adding $cl->SetMatchMode(SPH_MATCH_EXTENDED2); $cl->SetRankingMode(SPH_RANK_BM25); You should get same result. Btw, don't trust search tool too much , it's more for testing and kinda a 'second class citizen' in the Sphinx project. Use API or sql interface.

    0 讨论(0)
提交回复
热议问题