【问题标题】:How to sort sphinx result by document id如何按文档 ID 对 sphinx 结果进行排序
【发布时间】:2012-07-15 05:27:55
【问题描述】:

我想用文档 ID 对我的 sphinx 结果进行排序。通过任何更改,我可以在特定的 sphinx 索引结果中设置任何默认排序模式。如果可能的话,我怎么能给出那个。请帮帮我。

【问题讨论】:

    标签: php mysql search sorting sphinx


    【解决方案1】:

    我不确定到目前为止尝试了什么。

    但我认为下面的 sn-p 会得到你想要的结果:

    $cl->SetSortMode(SPH_SORT_EXTENDED, '@id asc');
    

    希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-15
      • 2018-07-25
      • 1970-01-01
      • 1970-01-01
      • 2013-09-30
      • 2014-05-10
      • 2016-01-25
      相关资源
      最近更新 更多