0

I have implemented dbsight on my server. It is working fine. Just one option is missing: it is not showing me autosuggestion on the search result page like in the demo page:

http://search.dbsight.com/search.do?indexName=freedb&q=u2+beautiful+day

In my search result page it is not displaying me suggestion list. I have found the suggest.ftl file but it's doesn't produce anything. You can check it over here.http://filesinn.com/

search the term and I show the ajax call on the firebug console but it will not populate suggestion list.

Can any one help me out?

Thanks.

4

2 回答 2

0

他们确实为此使用了 jquery.suggest.js 我认为:

http://search.dbsight.com/templates/freedb/html/resource/jquery.suggest.js

使用 .在您的输入字段上激活它id="q"

jQuery(function() {
 jQuery("#q").suggest("suggest.do?indexName=freedb",
 {
  minchars:1
 });
});

它在 keypes 上进行这样的查询:

http://search.dbsight.com/suggest.do?indexName=freedb&q=u2+beautiful+d

于 2012-09-12T09:14:23.970 回答
0

起初,我还误以为您已经在主页上实现了自动完成功能。但是花了一些时间后,我意识到我看到的不是服务器自动完成,而是浏览器自动完成

在您的主页中,您最好将autocomplete="off"属性添加到您的输入字段,以禁用浏览器帮助用户自动完成他在名为“q”的字段中键入的所有历史记录。

然后继续从 DBSight 文档中学习:

于 2012-09-12T15:02:17.073 回答