diff options
author | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2017-02-27 14:19:17 +0100 |
---|---|---|
committer | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2017-02-27 14:19:17 +0100 |
commit | 3939b735ee2f70fcd23ed24438951a8074d47c6d (patch) | |
tree | f8bfdee92f2fb70d8ff81045d6d165f452c71281 /vespaclient-container-plugin | |
parent | 2f816c1618a16930e56fcca97d8ce5bebdbaed0b (diff) |
Make visit work for numbers.
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r-- | vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java index 80769909b9f..c78bac5d7b8 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java @@ -220,7 +220,12 @@ public class RestApi extends LoggingRequestHandler { "Visiting does not support setting value for group/value in combination with expression, try using only expression parameter instead.", restUri); } - documentSelection = "id.group='" + restUri.getGroup().get().value + "'"; + RestUri.Group group = restUri.getGroup().get(); + if (group.name == 'n') { + documentSelection = "id.user=" + group.value; + } else { + documentSelection = "id.group='" + group.value + "'"; + } } Optional<String> cluster = Optional.ofNullable(request.getProperty(CLUSTER)); Optional<String> continuation = Optional.ofNullable(request.getProperty(CONTINUATION)); |