You have to show us exactly what you're doing when you
add and remove "solr.TextField".

This error _usually_ means that your solrconfig.xml
file for some request handler has
<df>text</df>
and thus when you send a query in without a field
qualifier it is searched for in a "text" field. I suspect
that what you're _really_ doing is somehow removing
the <field name="txt"....> somehow.

Best,
Erick

On Wed, Jul 13, 2016 at 7:00 AM, sara hajili <hajili.s...@gmail.com> wrote:
> hi i switched from solr 5.3 to solr 6.1.0.
> in my schema file i have a solr.textField
> now when i start solr and add core . i get this exception
>
> org.apache.solr.common.SolrException: undefined field text
>         at 
> org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1300)
>         at 
> org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:452)
>         at 
> org.apache.lucene.analysis.DelegatingAnalyzerWrapper$DelegatingReuseStrategy.getReusableComponents(DelegatingAnalyzerWrapper.java:74)
>         at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:169)
>         at 
> org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:206)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:372)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:742)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:530)
>         at org.apache.solr.parser.QueryParser.Term(QueryParser.java:315)
>         at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:186)
>         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:153)
>         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:162)
>         at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:267)
>         at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:2036)
>         at 
> org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:68)
>         at 
> org.apache.solr.core.SolrCore.lambda$getSearcher$4(SolrCore.java:1810)
>         at org.apache.solr.core.SolrCore$$Lambda$24/1861899333.call(Unknown 
> Source)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229)
>         at 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$1/728115831.run(Unknown
> Source)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
> and when i delete solr.textField type every thing is ok.
>
> how i solve it?
>
> tnx

Reply via email to