[DOCS-4820] Clarify that the 'language' field can only be used in the root of a document. Created: 13/Feb/15  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: mongodb-2.6
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Trivial - P5
Reporter: Annette Morrissey (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

all


Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769

 Description   

On CS-18520 a customer wanted to created sub documents with a

{language}

field.

We did some test and found that its not possible:

> db.testCollection.ensureIndex(

{ "$**": "text" }

,

{ name: "TextIndex", language_override: "newdoc.language" }

)
{
"errmsg": "exception: language_override is not valid",
"code": 17136,
"ok": 0
}

The docs don't explicitly say that this is not allowed:

http://docs.mongodb.org/manual/tutorial/specify-language-for-text-index/#specify-the-default-language-for-a-text-index

Also, the internal wiki page on text indexes is very helpful. Could we incorporate the examples from the wiki into the public docs:

https://wiki.mongodb.com/display/KB/FAQ%3A+Creating+a+text+index+and+searching+words+and+phrases

-Annette



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Comment by Kay Kim (Inactive) [ 24/Sep/16 ]

bulk assigning tickets in backlog to team members to groom.

Generated at Thu Feb 08 07:48:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.