Skip to content

Commit e87a035

Browse files
WalterHublesv
authored andcommitted
Excluded a property from the index (#270)
* Excluded a property from the index For doc purposes * Update Concepts.java
1 parent 3048d29 commit e87a035

File tree

1 file changed

+2
-1
lines changed
  • datastore/src/main/java/com/google/datastore/snippets

1 file changed

+2
-1
lines changed

datastore/src/main/java/com/google/datastore/snippets/Concepts.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ public void testProperties() {
210210
.set("done", false)
211211
.set("priority", 4)
212212
.set("percent_complete", 10.0)
213-
.set("description", "Learn Cloud Datastore")
213+
.set("description",
214+
StringValue.builder("Learn Cloud Datastore").excludeFromIndexes(true).build())
214215
.build();
215216
// [END properties]
216217
assertValidEntity(task);

0 commit comments

Comments
 (0)