Example usage for org.springframework.data.solr.core.schema SchemaDefinition getUniqueKey

List of usage examples for org.springframework.data.solr.core.schema SchemaDefinition getUniqueKey

Introduction

In this page you can find the example usage for org.springframework.data.solr.core.schema SchemaDefinition getUniqueKey.

Prototype

@Nullable
    public String getUniqueKey() 

Source Link

Usage

From source file:org.springframework.data.solr.core.schema.SolrSchemaWriterTests.java

/**
 * @see DATASOLR-72/*from  w ww  .ja  v a  2  s .c  om*/
 */
@Test
public void loadExistingSchemaShouldMapSchemaInformationCorrectly() {

    setUpJsonResponse(JSON_RESPONSE_DEFAULT_SCHEMA);
    SchemaDefinition schemaDef = writer.loadExistingSchema("collection1");

    Assert.assertEquals("example", schemaDef.getName());
    Assert.assertEquals("id", schemaDef.getUniqueKey());
}