//指定字段查询 带profile
GET /movies/_search?q=2012&df=title
{
"profile": true
}
//泛查询,正对_all,所有字段
GET /movies/_search?q=2012
"profile": true
}
//指定字段
GET /movies/_search?q=title:2012
{
"profile": true
}
//使用引号 phrase查询
GET /movies/_search?q=title:"Beautiful Mind"
{
"profile": true
}
//查找美丽心灵,Mind为泛查询
GET /movies/_search?q=title:Beautiful Mind
{
"profile": true
}
//分组,Bool查询
GET /movies/_search?q=title:(Beautiful Mind)
{
"profile": true
}
//查找美丽心灵
GET /movies/_search?q=title:(Beautiful AND Mind)
{
"profile": true
}
//查找美丽心灵
GET /movies/_search?q=title:(Mind NOT Beautiful)
{
"profile": true
}
//查找美丽心灵
GET /movies/_search?q=title:(Beautiful %2BMind)
{
"profile": true
}
//范围查询,区间写法 /数学写法
GET /movies/_search?q=year:>=1980
{
"profile": true
}
//通配符查询
GET /movies/_search?q=title:b*
{
"profile": true
}
//模糊匹配&近似度匹配
GET /movies/_search?q=title:beautifl~1
{
"profile": true
}
GET /movies/_search?q=title:"Lord Rings"~2
{
"profile": true
}