mongodb text search using multiple languages

后端 未结 2 1235
旧时难觅i
旧时难觅i 2020-12-06 19:58

I have collection which has two fields

{
name : \'text English\',
descr: \'Texto largo en español\'
}

I would like to create a multi-langua

2条回答
  •  天命终不由人
    2020-12-06 20:27

    You specifically meant: http://docs.mongodb.org/manual/tutorial/create-text-index-on-multi-language-collection/#use-any-field-to-specify-the-language-for-a-document I suppose, which allows you to override the language for a whole document with a specific field's value.

    What you want from your question, you can not do yet in MongoDB, but this feature is planned for the upcoming version of MongoDB. You can track the ticket at https://jira.mongodb.org/browse/SERVER-9390

提交回复
热议问题