From 6265831f65c33d7b5d5481198779d7c9adc33a2c Mon Sep 17 00:00:00 2001 From: Walter Poupore Date: Mon, 11 Jul 2016 11:01:56 -0700 Subject: [PATCH 1/2] Excluded a property from the index For doc purposes --- .../src/main/java/com/google/datastore/snippets/Concepts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java b/datastore/src/main/java/com/google/datastore/snippets/Concepts.java index 1817cee78de..fa2ee703998 100644 --- a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java +++ b/datastore/src/main/java/com/google/datastore/snippets/Concepts.java @@ -210,7 +210,7 @@ public void testProperties() { .set("done", false) .set("priority", 4) .set("percent_complete", 10.0) - .set("description", "Learn Cloud Datastore") + .set("description", StringValue.builder("Learn Cloud Datastore").excludeFromIndexes(true).build()) .build(); // [END properties] assertValidEntity(task); From 997ed2a93b7f385ebfc61c48bdb301331fe0fffa Mon Sep 17 00:00:00 2001 From: Walter Poupore Date: Mon, 11 Jul 2016 12:53:38 -0700 Subject: [PATCH 2/2] Update Concepts.java --- .../src/main/java/com/google/datastore/snippets/Concepts.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java b/datastore/src/main/java/com/google/datastore/snippets/Concepts.java index fa2ee703998..2a666b26a9e 100644 --- a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java +++ b/datastore/src/main/java/com/google/datastore/snippets/Concepts.java @@ -210,7 +210,8 @@ public void testProperties() { .set("done", false) .set("priority", 4) .set("percent_complete", 10.0) - .set("description", StringValue.builder("Learn Cloud Datastore").excludeFromIndexes(true).build()) + .set("description", + StringValue.builder("Learn Cloud Datastore").excludeFromIndexes(true).build()) .build(); // [END properties] assertValidEntity(task);