My code is provided below, English keyword wIth wildcard works fine,
but doesn't get any expected result on Tibetan or Chinese.
Please suggest how to configure wildcard correctly.
btw, my api version is 2.2 on aws.
Regards,
kmsheng
client.search({
index: 'adarsha',
type: 'pb',
body: {
from: 0,
size: 30,
query: {
'query_string': {
'analyze_wildcard': true,
'default_field': 'text',
'query': keyword
}
},
sort: [{'id': {order: 'asc'}}, '_score'],
highlight: {
fields: {
text: {
'fragment_size' : 20,
'number_of_fragments' : 3,
'no_match_size': 20
}
}
}
}
});