diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-03-07 14:30:55 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-03-07 14:30:55 +0100 |
commit | 9507be19fd111c9331a8f500236c1b01b99f6388 (patch) | |
tree | 06597cd1928667f034a9bf68258b0b8c2ec17236 /container-search/src/main/java/com/yahoo/fs4 | |
parent | 78a9d7de1f7d67be6cef8967d2dd7fbc884b4299 (diff) |
Fix parsing of array query properties in JSON payload
These were translated to request properties by calling
asString on the payload, which returns an empty value for arrays.
toString returns the correct value.
This also improves error messages for Slime JSON parsing
of queries, and in general.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/fs4')
-rw-r--r-- | container-search/src/main/java/com/yahoo/fs4/QueryPacket.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/fs4/QueryPacket.java b/container-search/src/main/java/com/yahoo/fs4/QueryPacket.java index 77fb740043e..028b0176c85 100644 --- a/container-search/src/main/java/com/yahoo/fs4/QueryPacket.java +++ b/container-search/src/main/java/com/yahoo/fs4/QueryPacket.java @@ -237,7 +237,7 @@ public class QueryPacket extends Packet { * such a way the comparing SORTDATA for two different hits * will reproduce the order in which the data were returned when * using sortspec. For now we simply drop these. If they - * become necessar, QueryResultPacket must be + * become necessary, QueryResultPacket must be * updated to be able to read the sort data. */ flags |= QFLAG_DROP_SORTDATA; |