Elasticsearch does not support joins, so I would recommend you denormalise your data and store student data together with the marks.

---