_size missing in 0.19.0.RC3?


(Matt) #1

In the gist at the bottom, can somebody point out to me why _size isn't
working? Am I just being incredibly dense?


(Clinton Gormley) #2

On Tue, 2012-02-21 at 05:35 -0800, Matt wrote:

In the gist at the bottom, can somebody point out to me why _size
isn't working? Am I just being incredibly dense?

https://gist.github.com/1876593

try adding this to your query string: &fields=_size


(Matt) #3

Thanks for the quick reply! Didn't work though; I've updated the gist with
the output that I'm getting.


(Shay Banon) #4

It doesn't get stored by default, just indexed (so you can query/facet on it). You can set store to yes on it and then it will also be stored.

On Tuesday, February 21, 2012 at 3:53 PM, Matt wrote:

Thanks for the quick reply! Didn't work though; I've updated the gist with the output that I'm getting.


(Matt) #5

Thanks again for the quick reply! I updated the gist again, this time with
"store": "yes" to _size as well as properties.body, but I'm still unable to
get the field back as part of the doc GET (with and without fields=). Am I
still doing something wrong, or this is by design?


(Shay Banon) #6

Yea, I see what happens. This is because of the real time get aspect (search would return it), opened an issue: https://github.com/elasticsearch/elasticsearch/issues/1724.

On Tuesday, February 21, 2012 at 3:35 PM, Matt wrote:

In the gist at the bottom, can somebody point out to me why _size isn't working? Am I just being incredibly dense?

https://gist.github.com/1876593


(Matt) #7

Great! Now I'm really looking forward to 0.19.0. Cheers!


(system) #8