首页 > 其他 > 详细

sphinx set several dates as filter

时间:2014-03-05 18:19:25      阅读:481      评论:0      收藏:0      [点我收藏+]

http://sphinxsearch.com/forum/view.html?id=3187

 

> I think I may have found a bug.

Yep, it looks weird. The problem is probably that you have two attributes (MVA and
timestamp) with the same name.

> $this->sphinx->SetFilterRange("starts", $startdateunix, $enddateunix);

Yes, that‘s what I was thinking. Now, I‘m not really sure that it‘s what you actually
want, but the idea was to store all dates associated with a document in that attribute
and set a range filter on it. So if any of these dates is inside the filter‘s range the
document would match.

sphinx set several dates as filter,布布扣,bubuko.com

sphinx set several dates as filter

原文:http://www.cnblogs.com/miaoz/p/3581699.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!