diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-05-31 15:26:04 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:22 +0200 |
commit | 506cc95a1a6964b57e348be704357a72773aed60 (patch) | |
tree | 6fa992da69e52a5e32be53b0b8d1401acce67edf /vespaclient-java | |
parent | c0b8b728ff8104b8f1e8c4445c08adf22f53c892 (diff) |
Use DocumentOnly-fieldset by default
Also remove deprecated and unsupported header-only visitor parameter
Diffstat (limited to 'vespaclient-java')
-rw-r--r-- | vespaclient-java/src/main/java/com/yahoo/vespaget/ClientParameters.java | 2 | ||||
-rw-r--r-- | vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vespaclient-java/src/main/java/com/yahoo/vespaget/ClientParameters.java b/vespaclient-java/src/main/java/com/yahoo/vespaget/ClientParameters.java index 3ea641fc642..6102f3da77f 100644 --- a/vespaclient-java/src/main/java/com/yahoo/vespaget/ClientParameters.java +++ b/vespaclient-java/src/main/java/com/yahoo/vespaget/ClientParameters.java @@ -17,7 +17,7 @@ public class ClientParameters { public final Iterator<String> documentIds; // Print only the id for retrieved documents public final boolean printIdsOnly; - // Determines which document fields to retrieve. Default is '[all]'. + // Determines which document fields to retrieve. Default is '[document]'. public final String fieldSet; // The Vespa route public final String route; diff --git a/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java b/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java index df847852c83..5ded5ff524b 100644 --- a/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java +++ b/vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.yahoo.document.DataType; import com.yahoo.document.Document; import com.yahoo.document.DocumentId; -import com.yahoo.document.fieldset.AllFields; +import com.yahoo.document.fieldset.DocumentOnly; import com.yahoo.documentapi.messagebus.MessageBusDocumentAccess; import com.yahoo.documentapi.messagebus.MessageBusSyncSession; import com.yahoo.documentapi.messagebus.protocol.DocumentProtocol; @@ -95,7 +95,7 @@ public class DocumentRetrieverTest { .setCluster("") .setRoute("default") .setConfigId("client") - .setFieldSet(AllFields.NAME) + .setFieldSet(DocumentOnly.NAME) .setPrintIdsOnly(false) .setHelp(false) .setShowDocSize(false) |