Reputation: 45692
I'm trying to get the list of all documents by the index:
curl -XGET 'localhost:9200/myindex'
But get:
No handler found for uri [/myindex] and method [GET]
Upvotes: 2
Views: 7061
Reputation: 22555
If you want to view all of the documents in the index, you will need to execute a search using post:
curl -XPOST 'localhost:9200/myindex/_search'
-d '{"query":{"match_all":{}}, "size":100}'
This requests the first 100 documents from your index. You can get more details on querying an index from the Search API and Query DSL documentation.
Upvotes: 5