New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document count fails #5

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

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}}
@michaelklishin

This comment has been minimized.

Show comment
Hide comment
@michaelklishin

michaelklishin Oct 18, 2012

Member

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

Member

michaelklishin commented Oct 18, 2012

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

This comment has been minimized.

Show comment
Hide comment
@ponzao

ponzao Oct 18, 2012

Well that was fast, thank you!

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