Hello I am trying to make a text field both searchable and sortable. I have a normalizer that seems to handle the sorting, but it prevents the field from being searchable. Any ideas what I've done wrong - note this is in Searchkick (ruby gem) format:
settings: {
analysis: {
normalizer: {
case_insensitive_sort: {
type: "custom",
char_filter: [],
filter: ['lowercase', 'asciifolding']
}
}
}
},
merge_mappings: true,
mappings: {
employer: {
properties: {
name: {
type: 'text',
fields: {
sort: {
type: 'keyword',
ignore_above: 256,
normalizer: 'case_insensitive_sort'
}
}
}
}
}
}