|
a.curl http://localhost:8983/solr/ttt/select?q=video
#q为基本查询,固定值不变video是查询的值。q查询是全文查询,可以跟正则符号.
b.http://localhost:8983/solr/ttt/select?q=video&fl=id,name,price
#fl固定值,结果返回id,name,price字段
c.http://localhost:8983/solr/ttt/select?q=name:black
#还是模糊查询,实验了下name:black没啥特殊含义,是一个整体字符串
d.http://localhost:8983/solr/ttt/select?q=price:0%20TO%20400&fl=id,name,price
#price:0 To 400 范围查询
e.http://localhost:8983/solr/ttt/select?q=price:0%20TO%20400&fl=id,name,price&facet=true&facet.field=cat
#facet固定值,聚合查询,相当于sql的group by 或 count
f.http://192.168.0.110:8983/solr/ttt/select?q=price:0%20TO%20400&fl=id,name,price&wt=json
#wt返回json格式 |
|
|