Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Algorithm 聚光灯顶击算法_Algorithm_Search_Autocomplete_Spotlight - Fatal编程技术网

Algorithm 聚光灯顶击算法

Algorithm 聚光灯顶击算法,algorithm,search,autocomplete,spotlight,Algorithm,Search,Autocomplete,Spotlight,我正在实现一个MacOS X的聚光灯一样的基于web的软件的通用搜索。因此,基本功能(获取结果、显示结果)已经完成,并且运行良好,但现在我必须做更多的工作,为用户提供正确的结果 基本上,我在软件中有三个重要部分 Document ID Document Person (to who the document is sent) Images with names (to be attached to the document) Persons (to who to send the docum

我正在实现一个MacOS X的聚光灯一样的基于web的软件的通用搜索。因此,基本功能(获取结果、显示结果)已经完成,并且运行良好,但现在我必须做更多的工作,为用户提供正确的结果

基本上,我在软件中有三个重要部分

Document ID
Document Person (to who the document is sent)

Images with names (to be attached to the document)

Persons (to who to send the documents)
因此,当用户搜索时,它会根据以下四个字段(文档,基于文档id,文档名称;图像,基于图像名称;人员,基于人员姓名)中的任意一个字段为他们提供一个项目列表

现在它只是给出了一个匹配项的列表,但我想让它更直观,就像聚光灯一样。 例如,如果您搜索“Mouse”,它会给您一个名为“Mouse”的热门搜索,指向鼠标设置,然后指向与鼠标相关的其他位置列表

现在真正的问题是——Spotlight如何将鼠标列为热门,以及如何将文档列为热门


我找不到任何与此相关的内容(不知道如何对此进行搜索)。任何算法和指针都将不胜感激。谢谢

搜索是一个巨大的话题。你可以开始读这个-

你的问题很广泛。尽量使它更具体