GET kibana_sample_data_ecommerce/_mapping
#精准率true positive/all positive,
#召回率true positive/ true positive + false negative
#SearchUrl,两种q查询,附加profile可以看出query是通过什么方式进行的。
# 1 指定字段查询
GET kibana_sample_data_ecommerce/_search?q=EUR&df=currency
{
"profile": "true"
}
# 2 泛查询
GET kibana_sample_data_ecommerce/_search?q=2020
{
"profile": "true"
}
GET kibana_sample_data_ecommerce/_search?q=products.base_price:11.99
{
"profile": "true"
}
#3 带引号与括号的用法说明
#3.1 "Men's Clothing" == Men's AND Clothing并且要求前后顺序保持一致,
#PhraseQuery,
GET kibana_sample_data_ecommerce/_search?q=category:"Men's Clothing"
{
"profile": "true"
}
#3.2 Men's Clothing == Men's OR Clothing
#BooleanQuery
GET kibana_sample_data_ecommerce/_search?q=category:(Men's Clothing)
#BooleanQuery
GET kibana_sample_data_ecommerce/_search?q=category:(NOT Men's Clothing)
#4 正则查询
GET kibana_sample_data_ecommerce/_search?q=category:W*
#5 错误纠正查询
GET kibana_sample_data_ecommerce/_search?q=customer_first_name:Abe~1
网友评论