Skip to content

Instantly share code, notes, and snippets.

@uklance
Last active December 17, 2015 08:49
Show Gist options
  • Save uklance/5582542 to your computer and use it in GitHub Desktop.
Save uklance/5582542 to your computer and use it in GitHub Desktop.
Create a hibernate / lucene FullTextSession service that can be @Inject'ed into your tapestry pages and services
@Scope(ScopeConstants.PERTHREAD)
public static FullTextSession buildFullTextSession(PropertyShadowBuilder propertyShadowBuilder) {
return Search.getFullTextSession(sessionManager.getSession());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment