List of usage examples for org.springframework.data.solr.core.schema SchemaDefinition getUniqueKey
@Nullable
public String getUniqueKey()
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()); }