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

搜索条件conditions被修改后查询结果不正确 #19

Open
MaxApp opened this issue Jan 6, 2013 · 1 comment
Open

搜索条件conditions被修改后查询结果不正确 #19

MaxApp opened this issue Jan 6, 2013 · 1 comment

Comments

@MaxApp
Copy link

MaxApp commented Jan 6, 2013

在ActiveRecord的condition_fields字段上进行初始索引,搜索结果正确。但之后update_attribute修改ActiveRecord的condition_fields字段内容后,在Model:_by:_conditions各种条件中,结果重复出现,导致指定conditions不起作用。根据代码推测在做redis_search_index_delete的时候,可能没有删除Model:_by:_conditions中的旧内容

@chenyun
Copy link

chenyun commented Mar 18, 2014

同样遇到了这个问题。似乎conditions字段在rake redis_search:index之后会保留旧conditions对应的记录,再创建一套新conditions对应的记录。

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

2 participants