在设计用户界面有趣的计算的东西 [英] Interesting Computing stuff in designing User Interfaces

查看:94
本文介绍了在设计用户界面有趣的计算的东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个搜索应用程序和使用开源搜索引擎Lucene的。 Lucene是返回结果在几毫秒的时间。我的问题是关系到下面给出的链接。这将是巨大的,如果你可以访问此链接:

I am working on a Search Application and using open source Search Engine Lucene. Lucene is returning results in few milliseconds. My question is related to the link given below. It would be great if you can visit this link:

http://www.netrics.com/demo/

点击名称,然后键入任何名称,它会开始渲染和改变的基础上的关键字。我知道这是像谷歌即时的每个字符的结果。我已阅读等等一些答案在谷歌即时功能,但他们有点复杂,对我来说,因为我不是从UI的世界。

Click on names and then type any name and it will start rendering and change the results based on each character keyed in. I know it is something like Google Instant. I have read some answers on SO on Google Instant feature but they were bit complex for me as I am not from the UI world.

我只是想知道的技术或简单的算法,可以让我做这个东西有一点细节。我没有对UI的东西太多想法。正如我刚才所说,我的搜索​​基础架构的返回结果超快速的方式,所以现在它的一个有趣的UI计算的问题对我来说。

I just want to know the technology or a simple Algorithm that can make me do this stuff with a bit of details. I dont have much idea on UI stuff. As I mentioned that my search infrastructure is returning results in super quick way, so now its an interesting "UI" Computing problem for me.

推荐答案

如果你有非常快的搜索引擎 - 这是很容易做到,但需要大量的资源,服务器端

If you have really fast search engine - it's quite easy to do, but requires lot of resources server-side.

首先,使用的工具,就像萤火虫(在Firefox)或蜻蜓(Opera)的或类似preVIEW当你改变任何字符的搜索查询发生的事。

Firstly, use tool like Firebug (in firefox) or Dragonfly (Opera) or similar to preview what happening when you change any char in search query.

网站要求这样的网址: <一href="https://demos.netrics.com/ncc7/find_json?table_name=names1M&sensitivity=0.843&query=abc&callback=jsonp1330501624190&_=1330501901072" rel="nofollow">https://demos.netrics.com/ncc7/find_json?table_name=names1M&sensitivity=0.843&query=abc&callback=jsonp1330501624190&_=1330501901072 和服务器端脚本返回JSON对象,这是德codeD和搜索结果的更新,客户端(使用JS)。

Site is requesting urls like that: https://demos.netrics.com/ncc7/find_json?table_name=names1M&sensitivity=0.843&query=abc&callback=jsonp1330501624190&_=1330501901072 and server-side scripts returns JSON object, which is decoded and search results are updated client-side (using js).

它不是很复杂,困难的事,但正如我所说 - 这将需要大量的服务器资源,当你的应用得到普及

Its not very complicated and difficult to do, but as I said - it'll require lot's of server resources when your app get popular.

这篇关于在设计用户界面有趣的计算的东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆