@@ -0,0 +1,1578 @@
+package ca.firstvoices.utils;%0A%0Aimport org.nuxeo.ecm.core.api.CoreSession;%0Aimport org.nuxeo.ecm.core.api.DocumentModel;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic class UtilityTestWordGenerator%0A%7B%0A%0A    static private String path = %22/FV/Workspaces/Data/Test-Language-Familiy-2/Test-language-2/Test-Dialect-2/Dictionary%22;%0A%0A    static private DocumentModel createDocument(CoreSession session, DocumentModel model)%0A    %7B%0A        model.setPropertyValue(%22dc:title%22, model.getName());%0A        DocumentModel newDoc = session.createDocument(model);%0A        session.save();%0A%0A        return newDoc;%0A    %7D%0A%0A    static public void createWords( CoreSession session )%0A    %7B%0A        // %22/FV/Family/Language/Dialect/Dictionary%22%0A        String testWord = %22Test_Word_%22;%0A%0A        for (int i = 0; i %3C 15000; i++ )%0A        %7B%0A            String wordValue = testWord +  i ;%0A            DocumentModel word = session.createDocumentModel( path, wordValue, %22FVWord%22);%0A%0A            Map%3CString, Object%3E complexValue = new HashMap%3CString, Object%3E();%0A            complexValue.put( %22language%22 , %22english%22);%0A            complexValue.put( %22translation%22, %22translation%22 + wordValue );%0A            ArrayList%3CObject%3E definitionsList = new ArrayList%3C%3E();%0A            definitionsList.add( complexValue );%0A            word.setPropertyValue( %22fvcore:definitions%22, definitionsList );%0A            word.setPropertyValue(%22fv:reference%22, wordValue );%0A            word.setPropertyValue(%22fv-word:part_of_speech%22, %22Basic%22 );%0A%0A            createDocument(session, word );%0A        %7D%0A    %7D%0A%0A%7D%0A

test data set creator