Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by NoblePaul: http://wiki.apache.org/solr/Solrj ------------------------------------------------------------------------------ req.add( docs ); UpdateResponse rsp = req.process( server ); }}} + [[Anchor(pojo)]] === Directly adding POJOs to Solr === * Create a Java bean with annotations. The [EMAIL PROTECTED] annotation can be applied to a field or a setter method. If the field name is different from the bean field name give the aliased name in the annotation itself as shown in the categories field. @@ -160, +161 @@ {{{ SolrDocumentList docs = rsp.getResults(); }}} + * To read Documents as beans, the bean must be annotated as given in the [#pojo example]. + {{{ + List<Item> beans = rsp.getBeans(Item.class); + }}}
