searchd error: index index_cmp_job: attribute 'gis_longitude' can not be updated (must be boolean, integer, timestamp, or&nbs
原创 2015-05-27 10:27:30
349阅读
PHP API:$sph->UpdateAttributes (索引名, array ( '字段1', '字段2' ), array ( 主键ID=>array(字段1更新的数据,字段2更新的数据), 主键ID=>array(字段1更新的数据,字段2更新的数据), 主键ID=>array(字段1更新的数据,字段2更新的数据)) );例如:$sph->UpdateAtt
转载 精选 2016-08-30 14:30:04
620阅读
常用Sphinx实时索引的方法及其弊端:1)定时(短间隔时间)重建全量索引。当数据量大时重建全量索引需要较长的时间及服务器资源。2)定时(较长间隔时间)重建全量索引并记录最大ID(maxid),配合定时(短间隔时间)重建ID大于maxid的文档增量索引。如果对ID小于或等于maxid的文档数据进行修改或删除,则会产生“幽灵结果”。虽然Sphinx提供了updateAttributes,但只能更新属