https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18085
Bug ID: 18085
Summary: Elasticsearch ids are not being stored correctly
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Searching
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
The upgrade from 1.X to 5.X works very well for indexing existing records,
however, it seems the '_id' field is not being given to elastic at save so it
is generating a random id.
The problem with this is that each record update will save a new record as
opposed to overwriting the existing record and you will get multiple items in
your search.
To reproduce:
1 - Have ES5 running and have some records
2 - Choose a biblionumber and reindex just that record, deleting the index
before:
perl /home/vagrant/kohaclone/misc/search_tools/rebuild_elastic_search.pl -d -b
-bn 2365
3 - View that record on the command line:
curl -XGET
'localhost:9200/koha_kohadev_biblios/_search/?pretty=true&q=es_id:2365'
4 - Note the '_id' field is of the form: "_id" : "AVoemHc9LtgvIQ1yOOU6",
5 - Search for the record in koha - should be one
6 - Add or edit the items on that record
7 - Search again, the record returns multiple times
This should be a small fix, not sure where the disconnect is though
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/