[ https://issues.apache.org/jira/browse/SOLR-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602647#action_12602647 ]
Ryan McKinley commented on SOLR-536: ------------------------------------ I think we should remove it from QueryResponce. After SOLR-215, I'm reluctant to bake in static variables unless absolutely necessary. In this case, I don't think using DocumentObjectBinder directly is a big deal -- it also lets the user decide if access needs to be synchronized or not. We can always add the function (and static cache) later if it is necessary. > Automatic binding of results to Beans (for solrj) > ------------------------------------------------- > > Key: SOLR-536 > URL: https://issues.apache.org/jira/browse/SOLR-536 > Project: Solr > Issue Type: New Feature > Components: clients - java > Affects Versions: 1.3 > Reporter: Noble Paul > Assignee: Ryan McKinley > Priority: Minor > Attachments: SOLR-536.patch, SOLR-536.patch, SOLR-536.patch > > > as we are using java5 .we can use annotations to bind SolrDocument to java > beans directly. > This can make the usage of solrj 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 > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.