Hi @Polar_swimming - Welcome to the community ![]()
But the weird part is that, if I use korean word that has 1 letter it passed. So, basically this fails.
{ “mappingType” : “equivalent” , “synonyms”: [“car”,“차차”] } ← failed
Can you provide the index details in JSON format and the full error message when you attempted to add the additional character?
I wasn’t able to reproduce any particular error when adding the dual character text "차차":
db.synonyms.find()
[
{
_id: ObjectId("634de9f26343f96ab5838209"),
mappingType: 'equivalent',
synonyms: [ 'car', 'vehicle', 'automobile', '차차' ]
}
]
Running a search query using synonyms for the text query value "차차":
db.cars.aggregate([{$search:{text:{query:'차차',path:"name",synonyms:"mySynonyms"}}}])
[
{ _id: ObjectId("634de7486343f96ab5838200"), name: 'vehicle' },
{ _id: ObjectId("634de7416343f96ab58381fe"), name: 'car' },
{ _id: ObjectId("634de7446343f96ab58381ff"), name: 'car 2' }
]
I believe you should be able to get the error message on the index build failure from the UI by clicking the "View status details" message on the Search Index page.
Regards,
Jason