[koha-commits] main Koha release repository branch master updated. v16.11.00-362-g4f178fa
Git repo owner
gitmaster at git.koha-community.org
Tue Feb 7 18:24:22 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via 4f178fad53fb748bd1ccf67680e02411918c9584 (commit)
via d1077b5ae6aa5c375ef91e6150a7d39b60513325 (commit)
from 0b2393cd655eb43e2d9893b40fb48abf1e786618 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4f178fad53fb748bd1ccf67680e02411918c9584
Author: Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi>
Date: Tue Jan 10 16:28:35 2017 +0200
Bug 17255 - Upgrade Elastic Search code to work with version 5.1
Builds on top of commit:
Bug 17255 - Upgrade Elastic Search code to work with version 2.4+ - rebased wip
-Fix data type 'string' to 'keyword' and 'text'
-index: not_analyzed deprecated, replaced with type: keyword which is equivalent
-store: yes was deprecated, use store: true
TODO: Installer bindings to both the debian package install and the raw developer install.
A taster in Buug 17851
ZE TEST PLAN
0. Remove existing ES and reinstall ES 5.1
apt-get purge elasticsearch
Follow instruction here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
1. Reset Elasticsearch index since facets are hard coded to dynamic search_marc_mappings.
1a. perl -e 'use Koha::SearchEngine::Elasticsearch; Koha::SearchEngine::Elasticsearch->reset_elasticsearch_mappings();'
1b. If you get trouble, simply DELETE FROM [search_fields|search_marc_to_fields|search_marc_mapping];
and retry 1a.
1c. Destroy elasticsearch index
curl -XDELETE localhost:9200/koha_biblios
so it can be recreated
2. Recreate the index:
perl misc/search_tools/rebuild_elastic_search.pl
2a. Add something to index if your koha.biblio-table is empty
3. Fetch all indexed records and the facet for subject__facet
curl -XGET localhost:9200/koha_biblios/data/_search?pretty -d '{
"aggregations": {
"my_agg": {
"terms": {
"field": "subject__facet"
}
}
}
}'
4. Run the included tests:
perl t/db_dependent/Koha_Elasticsearch_Indexer.t
perl t/db_dependent/Koha_Elasticsearch.t
perl t/db_dependent/Koha_SearchEngine_Elasticsearch_Search.t
Have fun with your new ES 5.1 cluster!
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
commit d1077b5ae6aa5c375ef91e6150a7d39b60513325
Author: Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi>
Date: Mon Jan 9 18:17:48 2017 +0200
Bug 17255 - Upgrade Elastic Search code to work with version 2.4+ - rebased wip
-Changed deprecated facets to aggregations
-Fixed boolean datatypes not allowing analyzers to be specified
-Fixed deprecated '_id' to 'es_id'. Now the ES-index has the correct id==biblionumber
ZE TEST PLAN
1. Reset Zebra index since facets are hard coded to dynamic search_marc_mappings.
2. perl misc/search_tools/rebuild_elastic_search.pl
3. Fetch all indexed records and the facet for subject__facet
curl -XGET localhost:9200/koha_biblios/data/_search?pretty -d '{
"aggregations": {
"my_agg": {
"terms": {
"field": "subject__facet"
}
}
}
}'
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
-----------------------------------------------------------------------
Summary of changes:
Koha/SearchEngine/Elasticsearch.pm | 98 +++++++++++++-------
Koha/SearchEngine/Elasticsearch/Indexer.pm | 2 +
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 4 +-
Koha/SearchEngine/Elasticsearch/Search.pm | 16 ++--
.../{Koha_Elasticsearch. => Koha_Elasticsearch.t} | 2 +-
5 files changed, 75 insertions(+), 47 deletions(-)
rename t/db_dependent/{Koha_Elasticsearch. => Koha_Elasticsearch.t} (94%)
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list