Examples of SetSchemaRequest


Examples of com.bluetangstudio.searchcloud.client.request.SetSchemaRequest

        DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
        DocumentSchema schema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField("date",
                new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
                new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();
       
        client.setSchema(new SetSchemaRequest(modelId, schema));

    }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.request.SetSchemaRequest

    }

    /** {@inheritDoc} */
    @Override
    public final void setSchema(String modelId, DocumentSchema schema) throws IOException, ServiceException {
        setSchema(new SetSchemaRequest(modelId,schema));
    }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.request.SetSchemaRequest

        DocumentSchemaBuilder documentSchemaBuilder = new DocumentSchemaBuilder();
        DocumentSchema schema = documentSchemaBuilder.withField("string", new StringFieldType(Language.ZH_TW))
                .withField("date", new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
                        new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();

        SetSchemaRequest buildSchemaRequest = new SetSchemaRequest("BuildSchemaRequestBuilderTest", schema);
        setTrackingVariables(buildSchemaRequest);

        SetSchemaRequestBuilder buildSchemaRequestBuilder = new SetSchemaRequestBuilder();
        HttpUriRequest httpUriRequest = buildSchemaRequestBuilder.build(buildSchemaRequest);
        Assert.assertEquals(httpUriRequest.getClass(), HttpPut.class);
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.