Solr + Lucene 做范围搜索时报错

Solr + Lucene 做范围搜索时报错

提示如下错误信息:望知者以解答

 

HTTP Status 400 - Query parsing error: Cannot parse

 'ProductID:[100000012 to 100000025]': Encountered

"100000025" at line 1, column 26. Was expecting: "]" ...


type Status report

message Query parsing error: Cannot parse 'ProductID:[100000012 to 100000025]': Encountered "100000025" at line 1, column 26. Was expecting: "]" ...

description The request sent by the client was syntactically incorrect (Query parsing error: Cannot parse 'ProductID:[100000012 to 100000025]': Encountered "100000025" at line 1, column 26. Was expecting: "]" ... ).

 

 


Apache Tomcat/6.0.16

posted @ 2008-08-18 15:43 蓉青姚 阅读(51) 评论(1)  编辑 收藏 网摘 所属分类: SOLR

  回复  引用  查看    
#1楼 [楼主]2008-08-18 15:53 | 蓉青姚      
已得到解决
原来不需要 to
直接写
'ProductID:[100000012 100000025]' 即可

看来查资料也不一定对
自己多尝试,才是最重要的

标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
Google站内搜索

相关文章:

相关链接:


 
http://www.520.hb.cn
http://www.520.ha.cn
http://www.520.hl.cn
www.diidii.com
www.badaotang.com