Package com.bluetangstudio.searchcloud.client.model

Examples of com.bluetangstudio.searchcloud.client.model.Document.addString()


        RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");

        String modelId = "test_SaveDocument";

        Document document = new Document(10);
        document.addString("title", "test");
        Integer documentId = client.saveDocument(new SaveDocumentRequest(modelId, document));
        Assert.assertNotNull(documentId);
        Assert.assertEquals(documentId, new Integer(10));

    }
View Full Code Here


        RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");

        String modelId = "test_SaveDocument";
        Document document = new Document();
        document.addString("title", "test");
        Integer documentId = client.saveDocument(new SaveDocumentRequest(modelId, document));
        Assert.assertNotNull(documentId);

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.