Spring Solr未定义字段激活

Spring Solr未定义字段激活,spring,spring-boot,solr,Spring,Spring Boot,Solr,我得到这个未定义字段“活动”错误,但活动字段存在于模式中。这在以前工作时没有任何错误,突然出现此错误: 我的Solr文档: @Data @JsonIgnoreProperties(ignoreUnknown = true) public class SDocument { @Id @Field private String indexId; @Field("code") private String code; @Field("n

我得到这个未定义字段“活动”错误,但活动字段存在于模式中。这在以前工作时没有任何错误,突然出现此错误: 我的Solr文档:

 @Data
   @JsonIgnoreProperties(ignoreUnknown = true)
    public class SDocument {

    @Id
    @Field
    private String indexId;
    @Field("code")
    private String code;
    @Field("name")
    private String name;
    @Field("active")
    private Boolean active; 
}
我将SpringBoot与solrCrudRepository一起使用,查询是

@Query(value = "code:?0* name:?0*", filters = "active:?1")
List<SDocument> findAllergenList(String searchKey, Boolean isActive);
@Query(value=“code:?0*名称:?0*”,filters=“active:?1”)
列表findAllergenList(字符串搜索键,布尔值isActive);
org.springframework.data.solr.UncategorizedSolrException:未定义字段处于活动状态;嵌套的异常是org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:未定义的字段处于活动状态
位于org.springframework.data.solr.core.SolrTemplate.execute(SolrTemplate.java:136)
位于org.springframework.data.solr.core.SolrTemplate.count(SolrTemplate.java:154)
位于org.springframework.data.solr.repository.query.AbstractSolrQuery$CollectionExecution.count(AbstractSolrQuery.java:435)
位于org.springframework.data.solr.repository.query.AbstractSolrQuery$CollectionExecution.execute(AbstractSolrQuery.java:415)
位于org.springframework.data.solr.repository.query.AbstractSolrQuery.execute(AbstractSolrQuery.java:149)
位于org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:415)

在org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:393)

在Solr Admin中运行相同的查询,但在springboot中无法在Solr中运行请求的可日志记录(管理界面->日志记录,将其调到
INFO
)并将从Spring发送到Solr的查询与您自己键入的查询进行比较。它们不会完全相同,因为这不会产生错误。请尝试对筛选器使用静态值。我的意思是不要把它当作方法论的论点。硬编码为真或假,并给出try@pvpkiran试过了,但还是一样error@MatsLindh将日志记录级别更改为INFO,但在登录Solr Admin时未打印任何内容。我应该重新启动solr吗