|
From: Brian M. <br...@ch...> - 2005-04-03 14:30:40
|
Cool. I've been javadoc-ing it, and cleaning up some of the duplication. Will keep poking at it locally until we figure out what to do with it. Spring main, Spring Modules, Lucene contrib, just self hosted, however it goes =) Figured I had it, and a bunch of folks I know asked for it, so might as well share. -Brian On Apr 3, 2005, at 7:00 AM, Rob Harrop wrote: > Brian, > > I took a look at the code and it looks really useful. I had actually > started something similar but I am no where near where you are with > your code. > > I'm happy to work with you on this code - we just need to decide where > to put it. I had originally intended to put my code in the fledgling > Spring Modules project, but we should evaluate the possibility of > putting it in Spring main. > > What are everyone's thought. Lucene is a relatively small JAR at only > 316K so it won't have a huge impact on distribution size. > > Rob > > Brian McCallister wrote: > >> snapshot of the classes as they are now: >> >> http://morphy.skife.org/spring-lucene/ >> >> -Brian >> >> On Apr 2, 2005, at 4:19 PM, Brian McCallister wrote: >> >>> I have a set of classes for Apache Lucene integration with Spring >>> (reasonable factory beans, a LuceneTemplate, and LuceneUtils) which >>> are designed to >>> >>> a) make it easier to work with Lucene from Spring (the template in >>> particular optimizes common cases nicely, and does the resource >>> open/closing like the other templates) >>> >>> b) make lucene index modifications abide by Spring's transaction >>> system by doing write-behind on adds (which are ignored on rollback) >>> and rolling back deletes via a transaction synchronization. >>> >>> >>> >>> I'd like to contribute them to Spring (if ya'll are interested), but >>> to clean up the code and design some first, I have a few questions: >>> >>> 1) Should transaction binding be "on" by default? Lucene is >>> semi-transactional by nature (supports r and r/w locks, changes are >>> flushed on reader/writer closing, etc), but I am not sure people >>> expect Lucene to be bound by other transactions. Potential >>> confusion. >>> >>> 2) What is a good tx manager to use for the unit tests? I am using a >>> modified version of the TestTransactionManager in Spring right now >>> (just changed to make it accessible and use synchonrizations). It is >>> much easier to use the TransactionTemplate than to manually manage >>> the tx's for tests =) >>> >>> 3) Not all of the ~interesting things you can do in lucene are >>> convenient to expose (splitting indexes etc) from the configuration. >>> Right now, rather than make a hack, the factory beans only support >>> single indexes. The only multi-index thing exposed right now is >>> really a configuration option on the SearcherBean which allows for >>> multiple indexes and a MultiSearcher ~transparently. >>> >>> Thanks! >>> >>> -Brian >>> >>> >>> ------------------------------------------------------- >>> SF email is sponsored by - The IT Product Guide >>> Read honest & candid reviews on hundreds of IT Products from real >>> users. >>> Discover which products truly live up to the hype. Start reading now. >>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>> _______________________________________________ >>> Springframework-developer mailing list >>> Spr...@li... >>> https://lists.sourceforge.net/lists/listinfo/springframework- >>> developer >>> >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real >> users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |