提问:布和纸怕什么?

怎样把查询转换为url

匿名 | 发布于2017年08月09日 | 阅读数:4615

请问以下的搜索怎样转换为浏览器地址栏里的URL,不使用POST方法?
curl -XGET http://192.168.1.20:9200/my-index/_search?pretty -d '
{
    "from": 0,
    "size": 5,
    "query": {
        "multi_match": {
            "query": "搜索内容",
            "type": "best_fields",
            "tie_breaker": 0.3,
            "fields": ["*.raw", "*.txt", "*.qp", "*.jp"]
        }
    },
    "highlight": {
        "pre_tags": ["<strong>"],
        "post_tags": ["</strong>"],
        "fields": {
            "*": {}
        }
    }
}'
 
已邀请:

sma - 90后IT

赞同来自:

简单的查询可以转换,太复杂的好像不行,复杂的一般是用DSL吧.

要回复问题请先登录注册