There are several shortages when searching a sensor entity by the traditional search engine .To overcome these prob‐lems ,an IoT‐oriented sensor entity search system was designed and implemented .By adopting the multithreading technique and following regular matching rules ,the original information database was established .Combining Lucene scoring mechanism with the geographic location property that sensor entities were generally equipped with ,a sorting algorithm based on the distances be‐tween sensors was proposed ,which made the information retrieving of the system efficient .Moreover ,the retrieved results were dynamically displayed on the Google map utilizing the Google Maps API ,while the sensor data were updated in real time using the AJAX technique .The experimental results indicate that compared with the traditional search engine ,the proposed system can not only improve the query accuracy ,but also bring better user experience .%为解决传统通用搜索引擎在检索物联网中传感器实体时效率低下及展示效果不佳等问题,设计并实现面向物联网的传感器实体搜索系统。采用多线程技术,遵循正则匹配法则,实现系统的信息采集;结合L ucene评分机制和传感器实体的地理位置属性,提出一种基于距离的传感器排序算法,实现信息的高效检索;在此基础上,分别利用Google Maps API和AJAX ,实现检索结果的动态展示和数据的实时更新。实验结果表明,与传统通用搜索引擎相比,该系统具有较高的检索准确率和较好的用户体验。
展开▼