当前位置:Gxlcms > 数据库问题 > Solr实现SQL的查询语句

Solr实现SQL的查询语句

时间:2021-07-01 10:21:17 帮助过:136人阅读


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

人气教程排行