Query document size

Hi,

I'm fairly new to ES and I wonder if there is a way to query size (in
bytes) of a single document, not average.

There was similar post
https://groups.google.com/d/msg/elasticsearch/N83Q-K_jK34/gYmbQSRn82kJ

which was was not answered. Did anyone ever encountered need for that and
possibly help how can I do it?

Ta

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

What are you looking to measure? The indexes don't really have a per
document size because they, well, are indexes. The documents do taken up
some space on disk but they are compressed.
On Dec 10, 2014 6:02 AM, "Jojo Juju" tv.in.concur@gmail.com wrote:

Hi,

I'm fairly new to ES and I wonder if there is a way to query size (in
bytes) of a single document, not average.

There was similar post
https://groups.google.com/d/msg/elasticsearch/N83Q-K_jK34/gYmbQSRn82kJ

which was was not answered. Did anyone ever encountered need for that and
possibly help how can I do it?

Ta

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd20keJ3RSZ_0r1AKZ80nBbWBt%3DDQ-qKYT%3DCj-SJZqF47g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Compressed size of a document on disk would be enough. We use store level
compression not the per document.
Would this be then actually possible?

Thanks

On Wednesday, December 10, 2014 1:27:49 PM UTC+1, Nikolas Everett wrote:

What are you looking to measure? The indexes don't really have a per
document size because they, well, are indexes. The documents do taken up
some space on disk but they are compressed.
On Dec 10, 2014 6:02 AM, "Jojo Juju" <tv.in....@gmail.com <javascript:>>
wrote:

Hi,

I'm fairly new to ES and I wonder if there is a way to query size (in
bytes) of a single document, not average.

There was similar post
https://groups.google.com/d/msg/elasticsearch/N83Q-K_jK34/gYmbQSRn82kJ

which was was not answered. Did anyone ever encountered need for that and
possibly help how can I do it?

Ta

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6f7d85d3-ab7a-4caa-87d5-5ba42ba7cdfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

In that case you can just count the bytes in the _source field. As I said
before just adding those up won't give you all the space taken up by the
whole shard but it'll give you some idea of how much space Lucene uses.

Nik

On Wed, Dec 10, 2014 at 7:58 AM, Jojo Juju tv.in.concur@gmail.com wrote:

Compressed size of a document on disk would be enough. We use store level
compression not the per document.
Would this be then actually possible?

Thanks

On Wednesday, December 10, 2014 1:27:49 PM UTC+1, Nikolas Everett wrote:

What are you looking to measure? The indexes don't really have a per
document size because they, well, are indexes. The documents do taken up
some space on disk but they are compressed.
On Dec 10, 2014 6:02 AM, "Jojo Juju" tv.in....@gmail.com wrote:

Hi,

I'm fairly new to ES and I wonder if there is a way to query size (in
bytes) of a single document, not average.

There was similar post https://groups.google.com/d/
msg/elasticsearch/N83Q-K_jK34/gYmbQSRn82kJ

which was was not answered. Did anyone ever encountered need for that
and possibly help how can I do it?

Ta

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/7ea54254-581f-444d-b07d-c63cd31232d5%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6f7d85d3-ab7a-4caa-87d5-5ba42ba7cdfb%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/6f7d85d3-ab7a-4caa-87d5-5ba42ba7cdfb%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0BdviWHcJVvXKQKEm38DD3jO44cKEVx9Wc5HN_X5R8ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.