Example usage for org.apache.solr.common SolrDocument addChildDocument

List of usage examples for org.apache.solr.common SolrDocument addChildDocument

Introduction

In this page you can find the example usage for org.apache.solr.common SolrDocument addChildDocument.

Prototype

@Override
    public void addChildDocument(SolrDocument child) 

Source Link

Usage

From source file:alba.solr.common.MySimpleFloatFunction.java

License:Apache License

@DocTransformer(name = "addchild")
public void addChild(SolrDocument doc) {
    SolrDocument child = new SolrDocument();
    child.setField("field", "child doc value");

    doc.addChildDocument(child);
}