@@ -0,0 +1,999 @@
+package de.tblsoft.solr.pipeline.filter;%0A%0A%0Aimport de.tblsoft.solr.pipeline.AbstractFilter;%0Aimport de.tblsoft.solr.pipeline.bean.Document;%0A%0Aimport java.util.List;%0A%0A/**%0A * This value converts multiple values of a field to documents.%0A */%0Apublic class Multivalue2DocumentFilter extends AbstractFilter %7B%0A%0A    private String fieldName;%0A%0A    @Override%0A    public void init() %7B%0A        fieldName=getProperty(%22fieldName%22, null);%0A        verify(fieldName, %22For the Multivalue2DocumentFilter a fieldName property must be defined.%22);%0A        super.init();%0A    %7D%0A%0A    @Override%0A    public void document(Document document) %7B%0A        List%3CString%3E values = document.getFieldValues(fieldName);%0A        if(values == null) %7B%0A            super.document(document);%0A        %7D else %7B%0A            for(String value: values) %7B%0A                Document newDocument = new Document(document);%0A                newDocument.setField(fieldName, value);%0A                super.document(newDocument);%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A%0A

implement a Multivalue2DocumentFilter