Hi Shay,
yes multiple types have an app_id. Digging deeper into it, I found the
problem seems to happen for array fields (like app_id), not scalar
ones. Here's another example:
location is scalar
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=location:London'
{"count":575,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=location:London'
{"count":575,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=location:London'
{"count":575,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=location:London'
{"count":575,"_shards":{"total":5,"successful":5,"failed":0}}
mail is an array
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=mail:george.sakkis@gmail.com'
{"count":20,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=mail:george.sakkis@gmail.com'
{"count":1,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=mail:george.sakkis@gmail.com'
{"count":20,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count? q=mail:george.sakkis@gmail.com'
{"count":1,"_shards":{"total":5,"successful":5,"failed":0}}
Just to clarify, this happens only for the one apparently corrupted
index (index_2012-03-30_00-10-07). Both previous indices and one I
built from scratch after that look stable.
Thanks,
George
On Mar 31, 10:52 pm, Shay Banon kim...@gmail.com wrote:
Can you do a get mapping on the index, and see if you have app_id field in
several mapping types?
On Fri, Mar 30, 2012 at 4:34 PM, George Sakkis george.sak...@gmail.comwrote:
Hi,
I'm starting a new thread as I can't can't reply to a previous one [1]
about the same (most likely) issue on a 2-node cluster:
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count?q=app_id:14956'
{"count":13589,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count?q=app_id:14956'
{"count":0,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count?q=app_id:14956'
{"count":13589,"_shards":{"total":5,"successful":5,"failed":0}}
$ echo curl -s -XGET 'localhost:9200/index_2012-03-30_00-10-07/_count?q=app_id:14956'
{"count":0,"_shards":{"total":5,"successful":5,"failed":0}}
There is one replica per shard and the num_docs of each primary matches
the respective replica. What could be the problem?
Thanks,
George
[1]
https://groups.google.com/group/elasticsearch/browse_frm/thread/7e125...