[
https://issues.apache.org/jira/browse/SOLR-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466037#comment-13466037
]
Hoss Man commented on SOLR-3905:
--------------------------------
"/" is now a query parser meta-character used to denote a regex query, so the
error stems fro ma code path attempting to generated a regex query against some
field (which it evidently has determined is dynamic)
please provide more details about your situation, in particular: your
schema.xml, the code you use to construct your EmbeddedSolrServer, and the
query string that caused this error.
> EmbeddedSolrServer throws NPE when terms contain slash
> ------------------------------------------------------
>
> Key: SOLR-3905
> URL: https://issues.apache.org/jira/browse/SOLR-3905
> Project: Solr
> Issue Type: Bug
> Reporter: Richard Wallace
>
> Using a search term with a slash ("/") is causing a NPE.
> {code}
> app: Caused by: org.apache.solr.client.solrj.SolrServerException:
> java.lang.NullPointerException
> app: at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:156)
> ~[solr-core-4.0.0-BETA.jar:4.0.0-BETA 1370099 - rmuir - 2012-08-06 22:51:18]
> app: ... 99 common frames omitted
> app: Caused by: java.lang.NullPointerException: null
> app: at
> org.apache.solr.schema.IndexSchema$DynamicReplacement.matches(IndexSchema.java:754)
> ~[solr-core-4.0.0-BETA.jar:4.0.0-BETA 1370099 - rmuir - 2012-08-06 22:51:18]
> app: at
> org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1033)
> ~[solr-core-4.0.0-BETA.jar:4.0.0-BETA 1370099 - rmuir - 2012-08-06 22:51:18]
> app: at
> org.apache.solr.schema.IndexSchema.getFieldType(IndexSchema.java:987)
> ~[solr-core-4.0.0-BETA.jar:4.0.0-BETA 1370099 - rmuir - 2012-08-06 22:51:18]
> app: at
> org.apache.solr.search.SolrQueryParser.getRegexpQuery(SolrQueryParser.java:246)
> ~[solr-core-4.0.0-BETA.jar:4.0.0-BETA 1370099 - rmuir - 2012-08-06 22:51:18]
> app: at
> org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:1055)
> ~[lucene-queryparser-4.0.0-BETA.jar:4.0.0-BETA 1370099 - rmuir - 2012-08-06
> 22:46:03]
> {code}
--
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]