HttpSolrServer查询时SyntaxError: Cannot parse

jhnm 发布于 2014/11/22 21:39
阅读 3K+
收藏 0
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: org.apache.solr.search.SyntaxError:
 Cannot parse 'qc:加长U型卡 ZY4200/12/24X支架(山东) KJ10-10( ) 65Mn': Encountered " ")" ") "" at line 1, column 38.
Was expecting one of:
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    "*" ...
    <QUOTED> ...
    <TERM> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
    <TERM> ...
    "*" ...
    
	at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:550)
	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
	at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
	at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)

查询时,开始<EOF>异常,于是将字符串的全角都转换为半角,然后又报上面的错误;
这是什么原因,请各位指点。 thanks



加载中
0
愁乐天
愁乐天
有特殊字符, 查询的时候如果包含特殊字符是需要转移的
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部