对于mysql获取数据,可以根据不同的条件来进行排序,同样使用coreseek也有同样的排序功能。PHP的API中只有 SetSortMode(模式,条件) 方法,他也支持多个字段一次排序。根据上一篇的数据:require('sphinxapi.php');$sc = new SphinxClient();$sc->SetSortMode(SPH_SORT_ATTR_DESC, 'group
原创 2014-05-15 17:27:23
887阅读
when I useSetSortMode(SPH_SORT_ATTR_ASC, 'floatVar'), it works unexpectedly. for example, I have a floatVar ranging from [-10.0, 10.0]when ISetSortMode(SPH_SORT_ATTR_ASC, 'floatVar', the result is0001.52.58-1.5-2.5-8...why? where I go wrong ?I just use another solution to solve it ,u
转载 2013-09-26 21:43:00
53阅读
2评论