How can i make a query / script for the example document below (and do this for all documents in the index) to: