we have a version we use internally here at AOL. I'm pinging the
developer to see how easy/hard it would be to contribute it back.
rgrds
Ian
Ryan McKinley wrote:
yes, in an early version of solrj, I had an annotation -> SolrDocument
implementation. It also had a hibernate connection inspired by
compass (http://www.compass-project.org/) -- it got tossed in an
effort to simplify what got commited.
check: http://solrstuff.org/svn/solrj-hibernate/ for an OLD version
that won't compile with the current verison, but may be a good place
to look
ryan
On Apr 9, 2008, at 2:49 PM, Noble Paul നോബിള് नोब्ळ् wrote:
We can use annotations to bind SolrDocument to java beans directly.
This can make the usage a bit simpler
The QueryResponse class in solrj can have an extra method as follows
public <T> List<T> getResultBeans(Class<T> klass)
and the bean can have annotations as
class MyBean{
@Field("id") //name is optional
String id;
@Field("category")
List<String> categories
}
--
--Noble Paul