Utilising the example in the README I changed the langauage from "en" to "nl":
await client.SaveContentAsync(generateId: (x) => $"{x.FirstName}_{x.LastName}", "nl", exampleData);
I see that the resulting JSON looks like this:
{
"index": {
"_id": "First_Last",
"language_routing": "nl"
}
}
{
"Status$$String": "Published",
"__typename": "ExampleClassObject",
"_rbac": "r:Everyone:Read",
"ContentType$$String": [
"ExampleClassObject"
],
"Language": {
"Name$$String": "en"
},
"FirstName$$String___searchable": "First",
"LastName$$String___searchable": "Last",
"Age$$Int___skip": 30
}
Note that the language name is still "en".
Querying this in Graph, I can't find in under the nl or en locale. Updating the language in the JSON above resolves this issue.
Utilising the example in the README I changed the langauage from "en" to "nl":
I see that the resulting JSON looks like this:
{ "index": { "_id": "First_Last", "language_routing": "nl" } } { "Status$$String": "Published", "__typename": "ExampleClassObject", "_rbac": "r:Everyone:Read", "ContentType$$String": [ "ExampleClassObject" ], "Language": { "Name$$String": "en" }, "FirstName$$String___searchable": "First", "LastName$$String___searchable": "Last", "Age$$Int___skip": 30 }Note that the language name is still "en".
Querying this in Graph, I can't find in under the
nlorenlocale. Updating the language in the JSON above resolves this issue.