[Koha-bugs] [Bug 25325] ElasticSearch mapping export lacks staff_client/opac fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 1 00:20:44 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25325

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Signed Off
                 CC|                            |victor at tuxayo.net

--- Comment #3 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Hi, I tried to test and improvised a lot because Koha ES is new for me.

First, I switch SearchEngine syspref to ES but I don't know what else to do. (I
have ES running as part of koha-testing-docker)

> 3. Confirm that in Search fields tab, the Searchable column hasn't
>   changed.

Without the patch, the Searchable column hasn't changed. So couldn't reproduce
the issue.
I suspect that it's because my test data (from koha-testing-docker) has
everything to "yes". And that "yes" might be the default.

So in the intranet I change few a columns to "no" and save.

>  An error occurred when updating Elasticsearch index mappings:
> Unable to update mappings for index "koha_kohadev_biblios".
> Reason was: "no such index". Index needs to be recreated and reindexed. 

>  An error occurred when updating Elasticsearch index mappings:
> Unable to update mappings for index "koha_kohadev_authorities".
> Reason was: "no such index". Index needs to be recreated and reindexed. 

>  Index 'koha_kohadev_biblios' needs to be recreated. 

>  Index 'koha_kohadev_authorities' needs to be recreated. 


Ok that doesn't look good. I must be missing some basic ES config.

At least I can confirm that with the patch there is a diff on the output of
export_elasticsearch_mappings.pl

It's precisely on the changes I made which is encouraging. Let's try anyway.

So my test plan completed was:

- SearchEngine syspref to ES (don't know if that's useful)
- set few fields to not searchable
- scary errors...
- misc/search_tools/export_elasticsearch_mappings.pl
- save to mappings.yaml
  - for me it's:
/kohadevbox/koha/admin/searchengine/elasticsearch/mappings.yaml
- restart_all (don't know if that's useful)
- reset mappings
- changes to the fields are lost
- apply patch
- restart_all
- set few fields to not searchable
- scary errors...
- misc/search_tools/export_elasticsearch_mappings.pl
- save to mappings.yaml
- restart_all (don't know if that's useful)
- reset mappings
- changes to the fields are still there! :D

So in spite of the scary errors and my dubious setup. It really look like it's
working :D

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


More information about the Koha-bugs mailing list