我使用 spring-boot-starter-data-solr。
我想使用 spring data solr 的一些配置,来自动配置 schema xml文件
我使用 了
@EnableSolrRepositories(schemaCreationSupport=true) 来支持 schema xml 自动创建支持。
@org.springframework.data.solr.core.mapping.Indexed(name="name",stored=true) String userName; 除了name 配置生效,xml 自动生成外, stored=true等 注解中的属性并没有配置生效。
求大神指点。
solr schemaCreationSupport 通过配置实体类 自动配置 schema
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-