I have a document with a document attached and I want to define a schema for Solr. I read the documentation, but don't know how to define schema.xml with attached documents.
When I try to index a document using addBean , I get an error because I don't have an obj1 field in the schema, and I don’t know how to determine it.
I am using a java object with @Field annotations.
public class ObjToIndex { @Field String id; @Field String name; @Field ObjToIndex2 obj1; public class ObjToIndex2 { @Field String id; @Field String lastName;
I don’t know how to define the obj1 field with the type “object” or something like that in the circuit.
source share