Hibernate Search 中文操作指南
Preface
像 Apache Lucene 这样的全文搜索引擎是非常强大的技术,可以为应用添加高效的自由文本搜索功能。然而,Lucene 在处理对象域模型时会出现一些不匹配。在它之外,必须保持索引的最新状态,并且必须避免索引结构与域模型之间以及查询之间的不匹配。
Full text search engines like Apache Lucene are very powerful technologies to add efficient free text search capabilities to applications. However, Lucene suffers several mismatches when dealing with object domain models. Amongst other things indexes have to be kept up to date and mismatches between index structure and domain model as well as query mismatches have to be avoided.
Hibernate Search 解决这些缺点:它在少数注释的帮助下索引域模型,负责数据库/索引同步,并从自由文本查询中检索定期管理的对象。
Hibernate Search addresses these shortcomings: it indexes your domain model with the help of a few annotations, takes care of database/index synchronization and brings back regular managed objects from free text queries.
为此,Hibernate Search 结合使用了 Hibernate ORM和 Apache Lucene/ Elasticsearch/ OpenSearch的强大功能。
To achieve this, Hibernate Search combines the power of Hibernate ORM and Apache Lucene/Elasticsearch/OpenSearch.