thats my solution:
/**
* build the full text session.
*
* @param logger the system logger
* @param sessionManager hibernate session manager
*
* @return full text session
*/
@Scope(ScopeConstants.PERTHREAD)
public FullTextSession buildFullTextSession(Logger logger,
HibernateSessionManager sessionManager)
{
if (logger.isInfoEnabled())
logger.info("initialize FullTextSession ...");
return Search.getFullTextSession(sessionManager.getSession());
}
with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org
2011/6/1 Mark <[email protected]>:
> I'm working on a project where I want to user Hibernate-Search (uses
> lucene queries and analyzers for stemming, etc.). However, it appears
> that the session I'm getting from tapestry-hibernate is different
> enough that I can't use it to create a FullTextSearch.
>
> https://issues.apache.org/jira/browse/TAP5-1178
>
> Seems to indicate there is a way to get this to work, but I can't seem
> to find any examples anywhere. Does anyone have any code or advice on
> getting hibernate-search to work well with tapestry-hibernate?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]