We are talking about GET index1 query in dev tool.
To create index : indices:data/write/*
To Read Index : indices:data/read/
To Delete Index : indices:admin/delete
Create index and delete index is working fine for me. But when I removed read permission then GET index1 command should not be work.
About java. I have java client to fetch data from ES. I am using GET command through java. If I want restrict GET operation on index1 it should work. It should give exception no permissions to GET or READ.