views:

75

answers:

1

I've been working on a web application using Spring/MVC which is coming along nicely. We'd like to now integrate apache lucene to index a lot of the domain objects for a user search facility.

I'm undecided if I should create an indexing service that's registered within spring or do it the traditional servlet way and implement a ServletContextListener being registered in the web.xml. If anyone has done something similar I'd be greatly appreciative of hearing your suggestions.

We are new to all spring, spring/MVC and Lucene.

A: 

If you have used hibernate an integration with Lucene already exists via Hibernate Search. Otherwise you have to index the entities yourself, cause i don't know OpenEdge.

khmarbaise
Can't use hibernate with our current configuration. My question is referring to if I should write a servlet ContextListener registered directly in `web.xml` or if I should write a service and register it with spring instead.
Brett Ryan