Document count fails #5

Closed
ponzao opened this Issue Oct 18, 2012 · 2 comments

Projects

None yet

2 participants

@ponzao
ponzao commented Oct 18, 2012

Document count fails. Here is the code I am using:

search> (esi/create "idx")
{:ok true, :acknowledged true}
search> (esd/create "idx" :person {:name "ponzao"})
{:ok true, :_index "idx", :_type ":person", :_id "IoC_2JvFTRGESc_pECKUpQ", :_version 1}
search> (esd/count "idx" :person)
{:count 0,
 :_shards
 {:failures
  [{:shard 0,
    :reason
    "BroadcastShardOperationFailedException[[idx][0] ]; nested: QueryParsingException[[idx] Failed to parse]; nested: ElasticSearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.ChannelBufferBytesReference@2e7227a8]; ",
    :index "idx"}
   {:shard 1,
    :reason
    "BroadcastShardOperationFailedException[[idx][1] ]; nested: QueryParsingException[[idx] Failed to parse]; nested: ElasticSearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.ChannelBufferBytesReference@2e7227a8]; ",
    :index "idx"}
   {:shard 2,
    :reason
    "BroadcastShardOperationFailedException[[idx][2] ]; nested: QueryParsingException[[idx] Failed to parse]; nested: ElasticSearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.ChannelBufferBytesReference@2e7227a8]; ",
    :index "idx"}
   {:shard 3,
    :reason
    "BroadcastShardOperationFailedException[[idx][3] ]; nested: QueryParsingException[[idx] Failed to parse]; nested: ElasticSearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.ChannelBufferBytesReference@2e7227a8]; ",
    :index "idx"}
   {:shard 4,
    :reason
    "BroadcastShardOperationFailedException[[idx][4] ]; nested: QueryParsingException[[idx] Failed to parse]; nested: ElasticSearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.ChannelBufferBytesReference@2e7227a8]; ",
    :index "idx"}],
  :total 5,
  :failed 5,
  :successful 0}}

Manual HTTP access works:

curl -XGET 'http://localhost:9200/idx/:person/_count'
{"count":1,"_shards":{"total":5,"successful":5,"failed":0}}
Owner

1.0.1 is up on clojars. This only affected requests that do not have the query part (I have never seen them used in the wild).

ponzao commented Oct 18, 2012

Well that was fast, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment