Koha/admin/searchengine/elasticsearch/field_config.yaml
Fridolin Somers 106adb320c
Bug 31695: Type standard number is missing field ci_raw in field_config.yaml
In Elasticsearch fields config field_config.yaml, default type as a field 'ci_raw'. This is used for exact search.
This field is missing for type  standard number 'stdno'.

Test plan :
1) In the staff interface, go to Administration, and search for SearchEngine
2) Make sure that the SearchEngine preference is set to Elasticsearch and save
3) Return to Administration and select "Search engine configuration"
4) Change the type of "Heading-Main" to "Std. Number" and save
5) Rebuild the index (e.g. "koha-elasticsearch --rebuild -d kohadev")
6) Go to the main staff page and select Authorities
7) Search for a heading (e.g. "A Dual-language book")
=> Result is found with or without patch
8) Click on the sliders and select "is exactly" for the operator and search
=> Result is found only with patch
9) Apply the patch
10) Rebuild the index (e.g. "koha-elasticsearch --rebuild -d kohadev")
11) Click on the sliders and select "is exactly" for the operator and search
=> Result is found only with patch

Signed-off-by: Kevin Carnes <kevin.carnes@ub.lu.se>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-04-14 11:35:35 -03:00

80 lines
1.5 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
ignore_malformed: true
year:
type: short
stdno:
type: text
analyzer: analyzer_stdno
search_analyzer: analyzer_stdno
fields:
phrase:
type: text
analyzer: analyzer_phrase
search_analyzer: analyzer_phrase
raw:
type: keyword
ci_raw:
type: keyword
normalizer: icu_folding_normalizer
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
normalizer: facet_normalizer
# Suggestible
suggestible:
default:
type: completion
analyzer: simple
max_input_length: 100
search_analyzer: simple
# Sort
sort:
default:
type: icu_collation_keyword
index: false
numeric: true
cn_sort:
type: icu_collation_keyword
index: false
numeric: false