Hi,
Have searched for boost related posts but cant find anything specific to this. I've added field level boosting to my field mapping. So in simple terms my raw mapping looks like this:
{
"properties":{
"title":{
"type":"text",
"boost":3
},
"content":{
"type":"text"
}
}
}
If I query the index with the document type I'm looking for and a non wildcarded search term the results are boosted exactly as I'd expect. So my search term is "+nodeName:news +cat". If cat is in the title the results are boosted which is what I want. If I add an asterisks to the end of the term so the search term becomes "+nodeName:news +cat*" the boost is not applied.
I've also tried a search term of "+nodeName:news +(cat cat*)", in this scenario exact match items are ordered by boost but the wildcarded ones are just appended to the end of the results.
Is it possible to have index mapping boost with a wildcarded search term work?
Apologies if this lacks enough information I'm relatively new to Elastic so just doing some trial and error at the moment.