You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Marcelo Elias Del Valle <mv...@gmail.com> on 2012/10/29 22:50:28 UTC
inserting a POJO tree using SOLRJ
Hello,
I am currently following these instructions to add data to SOLR:
http://wiki.apache.org/solr/Solrj#Directly_adding_POJOs_to_Solr
However, I have a bean attribute that is another class. Something like
bellow. Is it possible to index that the same way? I am not sure on how to
config solr for that.
public class User {
@Field
String id;
@Field("cat")
List<Category> categories;
}
public class Category {
@Field
String id;
@Field
String name;
}
Best regards,
--
Marcelo Elias Del Valle
http://mvalle.com - @mvallebr