Hi,
even if the documents are not stored in the database, you may want to have some metadata stored in the database, such as the link and/or path to the resource. This way you can still define your own Search Bridge to provide custom file format management.
I would still recommend to make sure all types returned by your search have something in common, can be an interface or a common supertype, to make sure you don't have to code different views to show the results.
You should read the book, it is plenty of examples helpful for this situation.
If you prefer you may access the indexes with Lucene's API, which is exposed through Hibernate Search, but you should not use it to make changes to the index. Of course you may want whatever you want with indexes not directly managed by H.S.
_________________ Sanne http://in.relation.to/
|