[
https://issues.apache.org/jira/browse/SOLR-5269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777185#comment-13777185
]
Hoss Man commented on SOLR-5269:
--------------------------------
please attach the entire "conf" directory for a solr core where you can
reproduce this problem so we can understand what you are seeing.
bq. ...although there were no other references to a field named "text"...
Are you certain of this? did you only modify the schema.xml? what about
solrconfig.xml? if you are starting from the 4.4 example configs there are
numerious places in solrconfig.xml where a field named "text" is referenced --
such as the default "df" param in the default handler ("/select") which gets
hit on startup with a "firstSearcher" warming query.
bq. ...every time solr started it complained about "undefined field text".
bq. The error message never indicates a filename or line number where the
offending reference is.
"complained" is a very vague verb.
where did you see this message? was it in your browser? what URL were you
looking at? if it was in a log file, then you should have also received a
stack trace that would help diagnose the root cause of the problem.
For example, when i attempted to recreate as best i could what i think you are
describing doing -- replacing "text" with "catchall" everywhere in schema.xml,
but _not_ modifying solrconfig.xml -- i got the following error in my logs on
startup...
{noformat}
2795 [searcherExecutor-4-thread-1] ERROR org.apache.solr.core.SolrCore –
org.apache.solr.common.SolrException: undefined field text
at
org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1234)
at
org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:418)
at
org.apache.lucene.analysis.AnalyzerWrapper.initReader(AnalyzerWrapper.java:117)
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:178)
at
org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:408)
at
org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:966)
at
org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:765)
at org.apache.solr.parser.QueryParser.Term(QueryParser.java:300)
at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:186)
at org.apache.solr.parser.QueryParser.Query(QueryParser.java:108)
at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:97)
at
org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:160)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50)
at org.apache.solr.search.QParser.getQuery(QParser.java:142)
at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:142)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:187)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1859)
at
org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:64)
...
{noformat}
...which is about what i would expect: the config files parsed fine, and the
server started up (and is completley usable) but the explicitly configured
QuerySenderListener's newSearcher event handler encountered an error because
the request it is configured to execute wants to use a field that doesn't exist.
> a field named text must be present in schema or an "undefined field text"
> will occur.
> -------------------------------------------------------------------------------------
>
> Key: SOLR-5269
> URL: https://issues.apache.org/jira/browse/SOLR-5269
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Environment: Ubuntu (13.10 beta, kernel 3.11.0-5-generic x64, Jetty
> 9.05, java 1.7.0_25, solr 4.4.)
> Reporter: John Karr
> Fix For: 4.4
>
>
> I changed the name of my catchall field ("text" in the example schema), and
> although there were no other references to a field named "text" every time
> solr started it complained about "undefined field text".
> I confirmed the issue on my workstation with a locally installed copy of solr
> (similar architecture, but using an older kernel and the embedded jetty).
> The error message never indicates a filename or line number where the
> offending reference is. Renaming my catchall back to text permitted the
> schema to load.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]