solrExecption : org.apache.solr.common.SolrException: undefined field text
来源:互联网 发布:淘宝首页广告位 编辑:程序博客网 时间:2024/06/16 00:44
org.apache.solr.common.SolrException: undefined field text at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1241) at org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:419) at org.apache.lucene.analysis.AnalyzerWrapper.initReader(AnalyzerWrapper.java:117) at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:178) at org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:207) at org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:375) at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:743) at org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:542) at org.apache.solr.parser.QueryParser.Term(QueryParser.java:299) at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:185) at org.apache.solr.parser.QueryParser.Query(QueryParser.java:107) at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96) at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:152) at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50) at org.apache.solr.search.QParser.getQuery(QParser.java:141) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:145) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:196) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1916) at org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:64) at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1695) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
这个错误是因为在修改solr配置文件,schema.xml时删掉了下面的默认字段:
<field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/>
只要把这个字段加到schema.xml中就可以了。
source:http://outofmemory.cn/code-snippet/14544/SolrException-undefined-field-text-solution
1 0
- solrExecption : org.apache.solr.common.SolrException: undefined field text
- Solr org.apache.solr.common.SolrException: undefined field text
- SEVERE: org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException: undefined field text 的解决办法
- org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException: undefined field text
- org.apache.solr.common.SolrException undefined field text
- solr启动时报错org.apache.solr.common.SolrException: undefined field text的解决办法
- org.apache.solr.common.SolrException
- org.apache.solr.common.SolrException: No such core: core0
- org.apache.solr.common.SolrException: Request-URI Too Large
- 求解决 org.apache.solr.common.SolrException: Internal Server Error
- org.apache.solr.common.SolrException: Error opening new searcher
- schema.doc.xml报错pic: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Coul
- solr - org.apache.solr.common.SolrException: Could not load config for solrconfig.xml
- solr服务器报错:org.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars
- org.apache.solr.common.SolrException: ERROR: multiple values encountered for non multiValued copy
- 使用SolrCloud出现org.apache.solr.common.SolrException: Collection not found: my_solr2
- Android--启动广播(Broadcast)
- linx查看raid和硬件信息
- Maven(三)坐标与依赖
- 角色骨架蒙皮与Unity插件的结合运用
- python itertools
- solrExecption : org.apache.solr.common.SolrException: undefined field text
- java中xml注释快捷键
- android单例模式的几种写法,以及优缺点
- C++ Windows thread pool
- iOS应用如何实现64位的支持
- Jetty 的工作原理以及与 Tomcat 的比较
- 关于 lpj
- 一句话判断x是否为2的若干次幂
- android错误-android.util.AndroidRuntimeException:You cannot combine custom titles with other title