这个脚本可以正常工作,但是它只能在两个位置搜索一个文件。
This script works but is limited to searching for a single file in only two locations.
接下来,将要实现一个真实的位置搜索应用程序来处理用户查询和呈现搜索结果。
From here, a real local-search application will need to investigate how best to scale, handle user queries, and visualize the results.
返回Source(即将讲到)后,可以在遇到特定uri时指导变换器在不同位置搜索指定文档。
Returning a Source (which I'll cover in a moment), you can instruct your transformer to search for the specified document in various locations when a particular URI is encountered.
A Yahoo! Finance page, you see a search box or a box on the very prominent position.
比如在雅虎财经页面十分显目的位置,会看到一个搜索框。
应用推荐