Hello,

  I have Java beans with parent-child relation that I am trying to index
using @Field annotation (copying the sample code below).

  I see that https://issues.apache.org/jira/browse/SOLR-1945 is open. Is
there any other way or document that describes how to use solrj annotations
to index nested objects in 4.10.3

  Please provide any references.

Thanks,
SJ

Solr version: 4.10.3

*Parent class:*

public class Asset {

@Field
private String name;

@Field("content_type")
private String contentType = "asset";

@Field("childDocuments")  // Does not work
private List<Attributes> attributes;

...
}

*Child class:*
public class Attribute {
@Field
private String name;

@Field("content_type")
private String contentType = "attribute";

@Field
private String value;
...
}

Reply via email to