1
votes

I have an Objectify Entity with a field declared as shown below

@Index
private @Load 
Ref<Course> course;

but I cant use this field to search for the entities in the google cloud console because its not available in the drop down list of available parameters which can be used to filter. Note: This field was indexed after data had been added in the data store.

what could be the cause of this? do I have to alter the composite indexes?

1

1 Answers

1
votes

Single-property indexes are created on a per-entity basis when the entity is saved. Unlike multiproperty indexes configured in datastore-indexes.xml, simply changing the java file will not have any effect on the stored data.

You will need to resave all relevant entities in order to index this field.