private static SchemaRepresentation createSchemaConfiguration(Map schemaObj) { SchemaRepresentation schemaRepresentation = new SchemaRepresentation(); schemaRepresentation.setName(getSchemaName(schemaObj)); schemaRepresentation.setVersion(getSchemaVersion(schemaObj)); schemaRepresentation.setUniqueKey(getSchemaUniqueKey(schemaObj)); schemaRepresentation.setSimilarity(getSimilarity(schemaObj)); schemaRepresentation.setFields(getFields(schemaObj)); schemaRepresentation.setDynamicFields(getDynamicFields(schemaObj)); schemaRepresentation.setFieldTypes(getFieldTypeDefinitions(schemaObj)); schemaRepresentation.setCopyFields(getCopyFields(schemaObj)); return schemaRepresentation; }
private static SchemaRepresentation createSchemaConfiguration(NamedList<Object> schemaNamedList) { SchemaRepresentation schemaRepresentation = new SchemaRepresentation(); schemaRepresentation.setName(getSchemaName(schemaNamedList)); schemaRepresentation.setVersion(getSchemaVersion(schemaNamedList)); schemaRepresentation.setUniqueKey(getSchemaUniqueKey(schemaNamedList)); schemaRepresentation.setDefaultSearchField(getDefaultSearchField(schemaNamedList)); schemaRepresentation.setDefaultOperator(getDefaultOperator(schemaNamedList)); schemaRepresentation.setSimilarity(getSimilarity(schemaNamedList)); schemaRepresentation.setFields(getFields(schemaNamedList)); schemaRepresentation.setDynamicFields(getDynamicFields(schemaNamedList)); schemaRepresentation.setFieldTypes(getFieldTypeDefinitions(schemaNamedList)); schemaRepresentation.setCopyFields(getCopyFields(schemaNamedList)); return schemaRepresentation; }