Confirming: Each nested doc in a doc counts towards total count?

I just wanted to confirm that

  1. the doc count ES provides for the index includes the sum of nested docs
    and top level docs in all types, and
  2. the doc count for the type includes just the sum of top level docs in
    the type?

Thanks!

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

The total hits is always based on the number of root documents, so
excluding the hit count on the nested level.

On 24 July 2013 15:56, Justin Treher jtreher@gmail.com wrote:

I just wanted to confirm that

  1. the doc count ES provides for the index includes the sum of nested docs
    and top level docs in all types, and
  2. the doc count for the type includes just the sum of top level docs in
    the type?

Thanks!

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
Met vriendelijke groet,

Martijn van Groningen

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

When I'm looking at ES head it is showing a count that is much higher than
my bulk index source. The only explanation is that it is including the
nested docs as part of its count. I know that head just pulls a stat call
on the server.

On Monday, July 29, 2013 5:58:02 AM UTC-4, Martijn v Groningen wrote:

The total hits is always based on the number of root documents, so
excluding the hit count on the nested level.

On 24 July 2013 15:56, Justin Treher <jtr...@gmail.com <javascript:>>wrote:

I just wanted to confirm that

  1. the doc count ES provides for the index includes the sum of nested
    docs and top level docs in all types, and
  2. the doc count for the type includes just the sum of top level docs in
    the type?

Thanks!

--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
Met vriendelijke groet,

Martijn van Groningen

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

I thought you were talking about the doc count in the search api, so yes,
the stats shows the number of Lucene documents that are in your index and
this includes the nested docs.

On 31 July 2013 17:28, Justin Treher jtreher@gmail.com wrote:

When I'm looking at ES head it is showing a count that is much higher than
my bulk index source. The only explanation is that it is including the
nested docs as part of its count. I know that head just pulls a stat call
on the server.

On Monday, July 29, 2013 5:58:02 AM UTC-4, Martijn v Groningen wrote:

The total hits is always based on the number of root documents, so
excluding the hit count on the nested level.

On 24 July 2013 15:56, Justin Treher jtr...@gmail.com wrote:

I just wanted to confirm that

  1. the doc count ES provides for the index includes the sum of nested
    docs and top level docs in all types, and
  2. the doc count for the type includes just the sum of top level docs in
    the type?

Thanks!

--
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.

For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
.

--
Met vriendelijke groet,

Martijn van Groningen

--
Met vriendelijke groet,

Martijn van Groningen

--
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.
For more options, visit https://groups.google.com/groups/opt_out.