For some reason the image didn't get embedded in the post this time, please 
look at the attachment in my previous post.

On Wednesday, December 30, 2015 at 1:51:55 AM UTC+1, Nick (Cloud Platform 
Support) wrote:
>
> It definitely seems, from a quick run-through of the doc and your schema, 
> that the inner entities' flattened fields should be "noindex" here. Are you 
> able to run queries which would hit the index, and do you see results?
>
> On Sunday, December 27, 2015 at 10:15:02 AM UTC-5, Rohan Chandiramani 
> wrote:
>>
>> I have the following struct in my Go code:
>>
>> Channel struct {
>> Name               string                                     
>>  `datastore:"-" json:"name,omitempty" goon:"id"`
>> UserId              int                                         
>>  `datastore:",noindex" json:"userid,omitempty"`
>> Subscription        Subscription                         
>> `datastore:",noindex" json:"subscription,omitempty"`
>> PersonalInformation []PersonalInformation        `datastore:",noindex" 
>> json:"personalInformation,omitempty"`
>> }
>>
>> PersonalInformation struct {
>> FirstName    string `datastore:",noindex" json:"firstName,omitempty"`
>> LastName     string `datastore:",noindex" json:"lastName,omitempty"`
>> StreetAdress string `datastore:",noindex" json:"streetAdress,omitempty"`
>> Province     string `datastore:",noindex" json:"province,omitempty"`
>> PostalCode   string `datastore:",noindex" json:"postalCode,omitempty"`
>> CountryCode  string `datastore:",noindex" json:"countryCode,omitempty"`
>> }
>>
>>
>> <https://lh3.googleusercontent.com/-oNntmToU2Mg/Vn_-aiXlGDI/AAAAAAAADvI/QbT8Uvmmq0M/s1600/array_nested_indexed.png>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> When I look at the new console, all values from PersonalInformation are 
>> marked indexed and greyed out.
>> It seems to only happen with Arrays, because the nested type Subscription 
>> isn't an array and is correctly marked as non indexed.
>>
>> https://cloud.google.com/appengine/docs/go/datastore/reference?hl=en
>> If an outer struct is tagged "noindex" then all of its implicit flattened 
>> fields are effectively "noindex".
>>
>> So is the console incorrectly marking these nested array values as 
>> indexed.
>> or 
>> Is the datastore itself marking these as indexed correctly and I can't 
>> find this specific behaviour in the documentation?
>>
>> -Not related to this problem-
>> Thank you for adding the 'Refresh' button!
>> Thank you for showing what entities derive from if they have an ancestor!
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6ab4df7c-bf2f-415b-a482-797d8eed45bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to