elasticsearch 中的 _analyze 遇到的問題

網上不少例子查看分析的結果都爲:web

curl -i -XGET 'http://localhost:9200/website/_analyze?text=du lo'

可是我在用的時候一直報錯:json

{
  "error": {
    "root_cause": [{
      "type": "index_not_found_exception",
      "reason": "no such index",
      "resource.type": "index_or_alias",
      "resource.id": "bad-request",
      "index_uuid": "_na_",
      "index": "bad-request"
    }],
    "type": "index_not_found_exception",
    "reason": "no such index",
    "resource.type": "index_or_alias",
    "resource.id": "bad-request",
    "index_uuid": "_na_",
    "index": "bad-request"
  }

更改下獲取的方式爲 dsl方式爲:curl

curl -i -XGET 'http://localhost:9200/website/_analyze?pretty' -d '{"text":"du lo"}' 能夠訪問啦ui

相關文章
相關標籤/搜索