Solr Indexing of ORM Entities: SolrEntity

ColdFusion 9 introduced two new features, Hibernate based ORM and Solr full text search indexing, however using the two together never seemed as easy as it could be. In the Java world you have Hibernate Search or the SolrJ client, both of which allow you to easily include an entity in a Lucene/Solr search index via simple annotations. Taking those projects as inspiration I came up with SolrEntity, a base component that implements ColdFusion ORM event handler methods to manage indexing of an entity via simple annotations (custom metadata attributes).


Henry's Gravatar Interesting, but is it possible to make this work without "extend"? My ORM entities already extending something and it'll get messy.
# Posted By Henry | 11/30/10 1:57 PM
Nathan MIsche's Gravatar Yes, you could do this without extending a base component if you move the logic into an ORM event handler.
# Posted By Nathan MIsche | 12/8/10 8:56 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.