[Koha-bugs] [Bug 12478] Elasticsearch support for Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 27 23:31:20 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12478

--- Comment #30 from Robin Sheat <robin at catalyst.net.nz> ---
(In reply to Jonathan Druart from comment #29)
> Try with the lastest  (1.4.2):
> 
>   $ wget
> https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-
> 1.4.2.deb

For what it's worth, I'm using 1.3.7 which is the latest stable. I wouldn't
think that would make a difference really though.

> But the indexing is still stuck on "Committing..."
> 
> I am using an UNIMARC DB, does the problem could be related to a bad mapping?

It shouldn't be, the mapping process is pretty simple and I'd expect it to just
not succeed rather than cause it to lock up.

Sitting on "committing" is consistent with not being able to talk to the ES
server, and there's currently no error handling for that (I'd expect it to time
out eventually, but who knows how long that'll take.) If I were you, that's
where I'd start looking. Make sure you can hit it with curl, and that the
config in koha-conf.xml is correct. fwiw, mine is:

 <elasticsearch>
     <server>koha-es:9200</server>
     <index_name>koha_robin</index_name>
 </elasticsearch>

If you're keen, fire it up in the debugger (perl -d) and do:

c Catmandu::Store::ElasticSearch::Bag::commit

and trace through from there, but after that point it gets pretty hard to drill
down further I found.

In theory, adding a <timeout> value to the elasticsearch block in the config
should cause that to be passed along to the other code, but that didn't seem to
happen with a quick test, so I might be wrong there.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list