Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

更新redis_search :title的指向字段后部分搜索结果未更新的问题 #40

Open
insub opened this issue Sep 15, 2014 · 0 comments

Comments

@insub
Copy link

insub commented Sep 15, 2014

情况描述如下:

  1. 我有一个模型类叫Products,里面有2000条数据,redis search的title是desc字段,其中60条desc字段有"邮件"字样。搜索结果无问题。
  2. 后修改redis search的title到keyword字段,之前desc字段里有“邮件”两字的products中,有一个id为30的product的keyword字段是没有“邮件”这两个字的。
  3. rake redis_search:index 后,发现还是会搜索出这个id为30的product.
  4. 用redis的gui工具查看本地的redis,发现redis_search:Products中hash key为30的value没有问题,里面并没有“邮件”两字。
  5. 在tempinterstore下有 “邮件+Product”这样的表,看里面,也没有30这个value
  6. 在tempsunionstore下也有 “邮件+Product”这样的表,看里面,也没有30这个value,但是数量和tempinterstore下面的不一样。
  7. 尝试修改了30这个ID的产品的desc字段,而后重新更新redis索引,也不行。

另外,不知道redis_search有没有一个强制全部重写索引的办法呢?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant