Bug 18189 - Elasticsearch sorting broken
To test:
1 - Have ES enabled and biblios and authorities indexed
2 - Perform a catalog search
3 - Try to sort results by author, it will fail
4 - Perform an authority search with sorting enabled, it will fail
5 - Apply patch
6 - Reindex, deleting current indexes
perl /home/vagrant/kohaclone/misc/search_tools/rebuild_elastic_search.pl
-d -v
7 - Repeat 3&4, they should succeed
Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
08a9deb1c0
commit
70377b3757
|
|
@ -224,9 +224,7 @@ sub get_elasticsearch_mappings {
|
|||
include_in_all => JSON::false,
|
||||
fields => {
|
||||
phrase => {
|
||||
search_analyzer => "analyser_phrase",
|
||||
analyzer => "analyser_phrase",
|
||||
type => "text",
|
||||
type => "keyword",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue