spring-data-solr

How Indexing nested documents using spring solr data


can anybody help me to explain how I can index nested documents? I'am using the lastest version of spring-data-solr , I have a document with a List and annoted as follow:

@Indexed(required = true,stored = true)
@Field(child = true,value = "werkzeuge")
private List<Werkzeug> werkzeuge;

But the document within solr has no field werkzeuge.

Iam using the SOLR schemaless configuration.

Many Thanks,


Solution

  • Nested Document support has been recently added to Spring Data for Apache Solr. At the time of writing there are only snapshot builds for this feature available. Please see DATASOLR-394 and the documentation for details.