LibreCat / Catmandu-Store-Elasticsearch

https://metacpan.org/release/Catmandu-Store-Elasticsearch
6 stars 5 forks source link

delete or query a store via CLI doesn't work #4

Closed jorol closed 9 years ago

jorol commented 10 years ago

I get an error when I try to delete or query the store via CLI.

My system:

Error:

# can index and count items
$ catmandu count ElasticSearch --index_name marc --bag marc
10

# can't delete or query items
$ catmandu delete ElasticSearch --index_name marc --bag marc
[Request] ** [http://192.168.xxx.xxx:9200]-[400] Bad Request, called from sub Search::Elasticsearch::Transport::try {...}  at /home/jorol/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Try/Tiny.pm line 81. With vars: {'request' => {'ignore' => [],'body' => {'match_all' => {}},'serialize' => 'std','post_process' => undef,'qs' => {},'path' => '/marc/marc/_query','mime_type' => 'application/json','as_json' => undef,'method' => 'DELETE'},'body' => {'_indices' => {'marc' => {'_shards' => {'failed' => 5,'failures' => [{'reason' => 'QueryParsingException[[marc] request does not support [match_all]]','index' => 'marc','shard' => 0},{'index' => 'marc','reason' => 'QueryParsingException[[marc] request does not support [match_all]]','shard' => 4},{'reason' => 'QueryParsingException[[marc] request does not support [match_all]]','index' => 'marc','shard' => 1},{'reason' => 'QueryParsingException[[marc] request does not support [match_all]]','index' => 'marc','shard' => 3},{'shard' => 2,'index' => 'marc','reason' => 'QueryParsingException[[marc] request does not support [match_all]]'}],'successful' => 0,'total' => 5}}}},'status_code' => 400}

Reason:

QueryParsingException[[marc] request does not support [match_all]]

With Elasticsearch 0.90.13 everything works fine.

jorol commented 10 years ago

Thanks a lot for the new release, works fine!

I get an error while installing with cpanm:

$ cpanm Catmandu::Store:Elasticsearch
! Finding Catmandu::Store:Elasticsearch on cpanmetadb failed.
! Finding Catmandu::Store:Elasticsearch () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Catmandu::Store:Elasticsearch
nics commented 10 years ago

there's a colon missing between Store and Elasticsearch

greets, nicolas

On 07/11/14 15:58, jorol wrote:

Thanks a lot for the new release, works fine!

I get an error while installing with cpanm:

$ cpanm Catmandu::Store:Elasticsearch ! Finding Catmandu::Store:Elasticsearch on cpanmetadb failed. ! Finding Catmandu::Store:Elasticsearch () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution Catmandu::Store:Elasticsearch

— Reply to this email directly or view it on GitHub https://github.com/LibreCat/Catmandu-Store-Elasticsearch/issues/4#issuecomment-62155528.

jorol commented 10 years ago

Arrgh..., sorry. But I still get an error message while installing:

$ cpanm Catmandu::Store::Elasticsearch
! Finding Catmandu::Store::Elasticsearch on cpanmetadb failed.
--> Working on Catmandu::Store::Elasticsearch
Fetching http://www.cpan.org/authors/id/N/NI/NICS/Catmandu-Store-Elasticsearch-0.01.tar.gz ... OK
Configuring Catmandu-Store-Elasticsearch-0.01 ... OK
Building and testing Catmandu-Store-Elasticsearch-0.01 ... OK
Successfully installed Catmandu-Store-Elasticsearch-0.01
1 distribution installed
jorol commented 9 years ago

I opened a new ticket for the "cpanmetadb" error.