Blog信息 |
blog名称: 日志总数:1304 评论数量:2242 留言数量:5 访问次数:7593713 建立时间:2006年5月29日 |

| |
[Java Open Source]Compass - QuickStart 软件技术
lhwork 发表于 2007/1/23 8:59:27 |
1.概述
Compass将lucene、Spring、Hibernate三者的起来,以很低很低的成本快速实现企业应用中的搜索功能。
HomePage: http://www.opensymphony.com/compass/
springside里用了compass来做图书搜索,快速建立的流程如下:
1.用简单的compass annotation把Book对象映射到Lucene。
2.配置compass默认提供的基于Spring MVC的Index Controller 和Search Controller。
3.编写查询结果的显示页面,将controller返回的变量显示出来。
2.Object/Search En |
|
[Java Open Source]integrate compass (lucene) and appfuse 软件技术
lhwork 发表于 2007/1/23 8:51:29 |
I've been playing with Compass and Appfuse to give search capability. I made notes as I was going and post them here in case anyone else finds them useful. A big thanks to Matt and Shay for these two projects, they work so well together :-)
This is a barebones setup, my next job, (I think), is to rework the SpringController to give back a list with hi |
|
[Java Open Source]Compass - springside 中的应用 软件技术
lhwork 发表于 2007/1/22 18:12:32 |
1.概述
springside 官方网站: http://www.springside.org.cn
网站: http://www.compassframework.org/
Compass是一流的开放源码JAVA搜索引擎框架,对于你的应用修饰,搜索引擎语义更具有能力。依靠顶级的Lucene搜索引擎,Compass 结合了,像 Hibernate和 Sprin的流行的框架,为你的应用提供了从数据模型和数据源同步改变的搜索力.并且添加了2方面的特征,事物管理和快速更新优化. Compass的目标是:把java应用简单集成到搜索引擎中.编码更少,查找数据更便捷 .
2.Object/Search Engine Mapping - 配置XML
OSEM: 对象搜索引擎影影射(Ob |
|
[Java Open Source]Compass: Integrate Search into your apps 软件技术
lhwork 发表于 2007/1/22 17:14:01 |
Motivation
In many applications, there is a user requirement to search or look up domain entities. It is either required as an entry point into the application or as a mechanism for filling in forms. Typically, this is solved either by navigation (presenting the domain hierarchically so the user can locate and choose an item) or by a search form (presenting the user with a form containing a number of fields they can search on).
Related< |
|
[Hibernate]Hibernate 学习小结 软件技术
lhwork 发表于 2007/1/22 16:48:45 |
一、PO的数据类型设置 int 还是Integer Integer 允许为 null Hibernate
既可以访问Field也可以访问Property,访问Property是只是调用getXXX()、setXXX()方法,因此在from Customer
where c.name=’Tom’ HQL中,name属性不需要存在,只要getName()存在就可以了。
二、Hibernate映射
1、映射复合主键
代码
主键类 Public class CustomerId i |
|
|