码迷,mamicode.com
首页 > 数据库 > 详细

Solr实现SQL的查询语句

时间:2015-12-29 06:34:17      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:solr查询语句


http://www.aboutyun.com/thread-7742-1-1.html


//查询
http://localhost/order/select?q=item_main_title:澳洲&wt=json&indent=true&fl=id,order_number,src,src_order


http://localhost/order/select?q=*:*&wt=json&indent=true&fq=order_date:[1441555200000 TO *]


SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd‘T‘HH:mm:ss‘Z‘");  
String time = "lostTime:["+sdf.format(new Date())+" TO "+sdf.format(new Date())+"]";

http://localhost/order/select?q=*:*&wt=json&indent=true&fq=channel_id:5 AND order_date:[1441555200000 TO 1441641599000] AND (order_status:E OR order_status:F OR order_status:G OR order_status:H)


http://localhost/wwwItem/select?q=*:*&wt=json&indent=true&fq=key_word:%E5%BD%93%E5%9C%B0%E7%BE%8E%E9%A3%9F&group=true&group.field=second_category_id&start=0&rows=10000&1445419659773


本文出自 “江山如画待赢归” 博客,谢绝转载!

Solr实现SQL的查询语句

标签:solr查询语句

原文地址:http://microe.blog.51cto.com/3332651/1729289

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!