aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-08-22 11:14:41 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-08-22 11:14:41 +0200
commit871e1e3e8443fd8cb7aa71e6c37f841b94c458c6 (patch)
tree955246fe41e67da69c168df4072da96fd54895c6 /container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java
parent194f04da54a9b5f2165213a2e1407c2db2a0d7af (diff)
Whitespace changes only
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java b/container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java
index d710754e887..919ddb7c655 100644
--- a/container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java
+++ b/container-search/src/main/java/com/yahoo/search/yql/MinimalQueryInserter.java
@@ -51,21 +51,23 @@ public class MinimalQueryInserter extends Searcher {
QueryTree newTree;
try {
newTree = parser.parse(Parsable.fromQueryModel(query.getModel())
- .setQuery(query.properties().getString(YQL)));
+ .setQuery(query.properties().getString(YQL)));
} catch (RuntimeException e) {
return new Result(query, ErrorMessage.createInvalidQueryParameter(
- "Could not instantiate query from YQL+", e));
+ "Could not instantiate query from YQL", e));
}
if (parser.getOffset() != null) {
- final int maxHits = query.properties().getInteger(MAX_HITS);
- final int maxOffset = query.properties().getInteger(MAX_OFFSET);
+ int maxHits = query.properties().getInteger(MAX_HITS);
+ int maxOffset = query.properties().getInteger(MAX_OFFSET);
if (parser.getOffset() > maxOffset) {
return new Result(query, ErrorMessage.createInvalidQueryParameter("Requested offset " + parser.getOffset()
- + ", but the max offset allowed is " + maxOffset + "."));
+ + ", but the max offset allowed is " +
+ maxOffset + "."));
}
if (parser.getHits() > maxHits) {
return new Result(query, ErrorMessage.createInvalidQueryParameter("Requested " + parser.getHits()
- + " hits returned, but max hits allowed is " + maxHits + "."));
+ + " hits returned, but max hits allowed is "
+ + maxHits + "."));
}
}