Nick
6a2ba8b6b2
As of bug 20589 we no longer analyze sort fields and so we no longer need to append ".phrase" to our sort in searches. Additionally, sort fields based on 'sum' should also use sum in building the value to sort on To test: 0 - Be using ES 1 - Find the most circulated item in your collection 2 - Search for '*' 3 - Sort by popularity DESC 4 - Note that item is not first 5 - Try to sort by anything but relevancy, it fails 6 - Apply patch 7 - Redo searches and sorts 8 - Things should now work as expected Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
---
|
|
# General field configuration
|
|
general:
|
|
properties:
|
|
marc_data:
|
|
store: true
|
|
type: text
|
|
analyzer: keyword
|
|
index: false
|
|
marc_data_array:
|
|
type: object
|
|
dynamic: true
|
|
marc_format:
|
|
store: true
|
|
type: text
|
|
analyzer: keyword
|
|
index: false
|
|
|
|
# Search fields
|
|
search:
|
|
boolean:
|
|
type: boolean
|
|
null_value: false
|
|
integer:
|
|
type: integer
|
|
null_value: 0
|
|
stdno:
|
|
type: text
|
|
analyzer: analyzer_stdno
|
|
search_analyzer: analyzer_stdno
|
|
fields:
|
|
phrase:
|
|
type: text
|
|
analyzer: analyzer_phrase
|
|
search_analyzer: analyzer_phrase
|
|
raw:
|
|
type: keyword
|
|
default:
|
|
type: text
|
|
analyzer: analyzer_standard
|
|
search_analyzer: analyzer_standard
|
|
fields:
|
|
phrase:
|
|
type: text
|
|
analyzer: analyzer_phrase
|
|
search_analyzer: analyzer_phrase
|
|
raw:
|
|
type: keyword
|
|
normalizer: nfkc_cf_normalizer
|
|
ci_raw:
|
|
type: keyword
|
|
normalizer: icu_folding_normalizer
|
|
# Facets
|
|
facet:
|
|
default:
|
|
type: keyword
|
|
# Suggestible
|
|
suggestible:
|
|
default:
|
|
type: completion
|
|
analyzer: simple
|
|
search_analyzer: simple
|
|
# Sort
|
|
sort:
|
|
default:
|
|
type: icu_collation_keyword
|
|
index: false
|
|
numeric: true
|