xzf158
6/23/2016 - 2:08 PM

Elasticsearch DSL.md

###指定分析器搜索

'match_phrase' => [
    'query_key' => [
        'query'    => 'test',
        "analyzer" => "keyword",
    ],
]

###更新max_result_window

curl -XPUT "http://localhost:9200/mz/_settings" -d '{ "index" : { "max_result_window" : 500000 } }'