全文检索框架Compass 1.2发布
程序员文章站
2022-05-15 17:17:27
...
Java的全文检索框架Compass发布了1.2正式版本。Compass封装了对全文检索引擎lucene的操作,并且提供了Spring/Hibernate的应用层框架,让用户可以不必深入了解lucene的情况下轻松的在自己的Spring/Hibernate架构的web应用当中集成全文检索功能。
Compass 1.2版本增加了一些新的功能,bug的修复,以及性能的提升。详细的新特性请看:
Compass 1.2版本增加了一些新的功能,bug的修复,以及性能的提升。详细的新特性请看:
引用
Null Value
When mapping a property of a class, a null value can be defined on the mappings which will be saved in the index if the actual property value is null. This allows to simply search on properties that has no value.
Improved Property Managed Id
When working with marshaling turned on, Compass will try and create an internal id (if required) in order to unmarshal the object correctly from the index. Now, there is an additional setting which instructs Compass not to create an internal id if all the mappings have store=”no”. The managed id setting can now be set on a specific property, as well as being set on class mappings and globally.
Improved No-Unmarshal Mode
Compass can work in no unmarshal mode there is no need to get the Object constructed back from the index. In this mode Compass does not store additional information in the index and performs the indexing much faster. Now, by calling the appropriate method in order to get an Object back, Compass will return the Object with its ids set. This allows for simpler integration with ORM libraries where loading the object from the database using the ORM tool is needed.
When mapping a property of a class, a null value can be defined on the mappings which will be saved in the index if the actual property value is null. This allows to simply search on properties that has no value.
Improved Property Managed Id
When working with marshaling turned on, Compass will try and create an internal id (if required) in order to unmarshal the object correctly from the index. Now, there is an additional setting which instructs Compass not to create an internal id if all the mappings have store=”no”. The managed id setting can now be set on a specific property, as well as being set on class mappings and globally.
Improved No-Unmarshal Mode
Compass can work in no unmarshal mode there is no need to get the Object constructed back from the index. In this mode Compass does not store additional information in the index and performs the indexing much faster. Now, by calling the appropriate method in order to get an Object back, Compass will return the Object with its ids set. This allows for simpler integration with ORM libraries where loading the object from the database using the ORM tool is needed.