Nick Clemens
f983c1e3f7
To test: 1 - Do some authority searches in Zebra 2 - Switch to ES and repeat, results will vary and some may fail 3 - Apply patch and dependencies 4 - Reindex ES 5 - Repeat searches, they should suceed and results should be similar to Zebra 6 - Slight differences are okay, but results should (mostly) meet expectations A few notes: We add a 'normalizer' to ensure we get a single token from the heading indexes, this makes 'starts with' work as expcted We switch to 'AND' for fields searched from cataloging editor - this matches Zebra results We force the '__sort' fields for sorting - if sorting looks wrong try reducing the heading field to a single subfield - this will need to be addressed on a future bug (multiple subfields create an array, ES sorts those randomly) Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
---
|
|
# General field configuration
|
|
general:
|
|
_all:
|
|
type: string
|
|
analyzer: analyser_standard
|
|
properties:
|
|
record:
|
|
store: true
|
|
type: text
|
|
# Search fields
|
|
search:
|
|
boolean:
|
|
type: boolean
|
|
null_value: false
|
|
integer:
|
|
type: integer
|
|
null_value: 0
|
|
stdno:
|
|
type: text
|
|
analyzer: analyser_stdno
|
|
search_analyzer: analyser_stdno
|
|
fields:
|
|
phrase:
|
|
type: text
|
|
analyzer: analyser_stdno
|
|
search_analyzer: analyser_stdno
|
|
raw:
|
|
type: keyword
|
|
copy_to: _all
|
|
default:
|
|
type: text
|
|
analyzer: analyser_standard
|
|
search_analyzer: analyser_standard
|
|
fields:
|
|
phrase:
|
|
type: text
|
|
analyzer: analyser_phrase
|
|
search_analyzer: analyser_phrase
|
|
raw:
|
|
type: keyword
|
|
lc_raw:
|
|
type: keyword
|
|
normalizer: my_normalizer
|
|
copy_to: _all
|
|
# Facets
|
|
facet:
|
|
default:
|
|
type: keyword
|
|
# Suggestible
|
|
suggestible:
|
|
default:
|
|
type: completion
|
|
analyzer: simple
|
|
search_analyzer: simple
|
|
# Sort
|
|
sort:
|
|
default:
|
|
type: text
|
|
analyzer: analyser_phrase
|
|
search_analyzer: analyser_phrase
|
|
fields:
|
|
phrase:
|
|
type: keyword
|