Solr实现SQL的查询语句


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查询语句)