honestly have not looked at it in ages ;)

make a patch and i'll check it over.  I imagine it is pretty good...

ryan


On Apr 10, 2008, at 12:07 AM, Noble Paul നോബിള്‍ नोब्ळ् wrote:
hi Ryan ,
I can raise an issue and provide a patch. Is the proposed API fine or
you wish it to be altered?
--Noble

On Thu, Apr 10, 2008 at 3:03 AM, Ryan McKinley <[EMAIL PROTECTED]> 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






--
--Noble Paul

Reply via email to