Hello everyone,
I inherited the mapping of a service (JAVA SPRING BOOT)with Elasticsearch and I'm going crazy for the search.
my field is so mapped:
"organizationNames":{
"type":"text",
"fields":{
"original":{
"type":"keyword"
}
},
"fielddata":true,
"copy_to":"text",
"analyzer":"k_analyzer"
}`
con questo analyzer:
`{
"analysis": {
"analyzer": {
"k_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase",
"stop",
"classic",
"stemmer",
"kstem"
]
}
}
}
}`
with innerBool.should(QueryBuilders. ........),
I can't make the exact match: if I have energy and green energy
if I search for "energy" both come up, how can I map my field in such a way that if I search for "eng" both come up and if I search for "energy" only energy comes out?