Elastic Search: how to see the indexed data

后端 未结 8 1494
深忆病人
深忆病人 2020-12-22 19:02

I had a problem with ElasticSearch and Rails, where some data was not indexed properly because of attr_protected. Where does Elastic Search store the indexed data? It would

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-22 19:23

    Following @JanKlimo example, on terminal all you have to do is:

    to see all the Index: $ curl -XGET 'http://127.0.0.1:9200/_cat/indices?v'

    to see content of Index products_development_20160517164519304: $ curl -XGET 'http://127.0.0.1:9200/products_development_20160517164519304/_search?pretty=1'

提交回复
热议问题