How to get distinct value of a field with URI query of elasticsearch and remove size constraint from the URI query

If I have redundant data for a field particular field, how do i display the field value only once with URI query of elasticsearch
Plus how can we remove size constraint and get all the indexed data?

could anybody please reply to this query?

If you want to get all the data then use scan and scroll, not a query.