基于LUCENE的通用检索框架

本文介绍了两个基于Lucene的Java框架:LIUS和Compass。LIUS提供了多种文件格式的索引功能,包括Office文档、PDF等,并支持JavaBeans的索引,适用于数据库索引场景。Compass则为应用程序提供了一流的搜索引擎语义支持,能够无缝集成到如Hibernate和Spring等流行开发框架中,简化了搜索功能的实现。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LIUS - Lucene Index Update and Search

http://www.bibl.ulaval.ca/lius/index.en.html

LIUS is an indexing Java framework based on the Jakarta Lucene project. The LIUS framework adds to Lucene many files format indexing fonctionalities as: Ms Word, Ms Excel, Ms PowerPoint, RTF, PDF, XML, HTML, TXT, Open Office suite and JavaBeans.

Indexing JavaBeans can be really useful when we want to index databases and more precisely when the user is programming the persistence layer (or the database connexion) while using ORM (Object Relational Mapping) like Hibernate, JDO, Torque, TopLink, etc.

LIUS also makes it possible to carry out a mixed indexing, (indexing) which the purpose is to integrate all the contents of a repertory (directory) under the same occurrence. This is very useful when the user want to index XML metadata, PDF plain text or in an other format. What makes it possible thereafter, for example, to carry out research on the title, author and the plain text at the same time.

LIUS is very easy to use; all the configuration of the indexing (types of files to be indexed, fields, etc...) as well as research is defined in a XML file, so the user only have to write few lines of code to carry out the indexing or research.

Compass Framework

http://www.compassframework.org/display/SITE/Home

The Compass Framework is a first class open source Java framework, enabling the power of Search Engine semantics to your application stack decoratively. Built on top of the amazing Lucene Search Engine, Compass integrates seamlessly to popular development frameworks like Hibernate and Spring. It provides search capability to your application data model and synchronises changes with the datasource. With Compass: write less code, find data quicker.

As of version 0.8, Compass also provides a Lucene Jdbc Directory implementation, allowing storing Lucene index within a database for both pure Lucene applications and Compass enabled applications. Note, when using Compass, using a database as the index storage requires only updating configuration settings.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值