Index Memory management user-wise

Hi all
I have some weird to do involving memory management for each user in
individual index.
Lets say i have some user field on each record to be inserted in an
index and when trying to index documents for that user i want to
restrict him/her to index upto only 1 gb per say, not more than that.
So my question is it possible to get the memory taken in an index by
any user like firing a query against user field.
Please give your suggestions on this.

Thanks;

Arien,

If you use one index per user than you can use the index stats api

the option you are interested in is 'store', so your URL should look
like this:

http://localhost:9200/index1/_stats?store=true

--Andrew

On May 10, 6:31 am, arien ajaypa...@gmail.com wrote:

Hi all
I have some weird to do involving memory management for each user in
individual index.
Lets say i have some user field on each record to be inserted in an
index and when trying to index documents for that user i want to
restrict him/her to index upto only 1 gb per say, not more than that.
So my question is it possible to get the memory taken in an index by
any user like firing a query against user field.
Please give your suggestions on this.

Thanks;