We are using Hibernate 3.2.5 with Search 3.0, and it works fine.
Now we have some entities referring to say huge PDF contents, whose content must be extracted before indexing; and the text extraction process takes some time: now this puts the transaction in hold before text extraction is completed. What is the appropriate way to do that?
We have set org.hibernate.worker.execution to asynch. Index writing is indeed asynchronous, but text extraction of course isn't, as it happens in the getter method (annotated with "Field") call. We have searched the search documentation and the forum, and found a lot of documentation and discussion concerning scaling the index writing process, but not about queueing the text extraction process.
We could build a @ClassBridge that puts the text extraction in a separate queue, but maybe there is a simpler way.
|