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

文档跟进 #35

Open
advancedxy opened this issue May 16, 2014 · 5 comments
Open

文档跟进 #35

advancedxy opened this issue May 16, 2014 · 5 comments

Comments

@advancedxy
Copy link

hi,
最近一个项目用到相关的搜索功能.尝试了一下这个项目, 发现不论是英文文档还是中文文档都不是特别准确, 走了不少弯路, 最终看代码才正常跑起来.不知您这边能否对这些文档进行进行润色修正? 我最近比较忙, 如果您暂时没时间修理这个问题, 后续待我有空之后, 可以帮助您修正一些问题.

下面是我碰到的文档上的一些问题:

  1. 我使用的是最新的0.9.6, 但 Github 项目 Readme 上建立索引数据的 rake 任务是不存在的. 0.9.6 只有 rake redis_search:index 这个任务.
  2. 中文 wiki 上环境和 Gem 的配置没有更新, 中文的 Gem 安装的版本比较低.
  3. 中文 wiki 上最底下的的一段代码让人不知所云.
  4. 用 Redis::Search.complete 进行搜索的话, 我看代码的实现貌似得必须在相应的 Model 下配置 :prefix_search_enable => true. 但给的说明没有提到这个问题.
  5. 中文的 wiki 貌似有比较多的 typo. 尤其是在 redis_search_index 参数说明这个小节.
@insub
Copy link

insub commented Jul 26, 2014

除了以上这些问题外,开启了拼音,貌似也无效

@insub
Copy link

insub commented Jul 26, 2014

Redis::Search.query("Product", params[:q])
使用query有结果返回

@search = Redis::Search.complete("Product", params[:q])
使用complete的话则结果为空

@huacnlee
Copy link
Owner

@insub complete 和 query 只能同时用一个

@insub
Copy link

insub commented Aug 4, 2014

同一时间只用了一个的

@imWildCat
Copy link

xymfssczl 能搜到结果时,无论用 complete 或者 query,xym or fss or czl 都是搜不到结果。

complete 无论在什么情况下都搜不到结果

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

4 participants