summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/Query.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2019-01-09 15:28:33 +0100
committerJon Bratseth <bratseth@oath.com>2019-01-09 15:28:33 +0100
commitf2b63fe7c6bb414645bcb41fb6e91a11efd68e17 (patch)
tree078cef621edf91f4f7ffa7a5e88d9f0e30e01cd4 /container-search/src/main/java/com/yahoo/search/Query.java
parent3187143c1b774684b5668fecd665a4452003ca32 (diff)
Parse USE_POSITION_DATA correctly
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/Query.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/Query.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Query.java b/container-search/src/main/java/com/yahoo/search/Query.java
index 8e5e14a3aac..2e106dc62f4 100644
--- a/container-search/src/main/java/com/yahoo/search/Query.java
+++ b/container-search/src/main/java/com/yahoo/search/Query.java
@@ -107,14 +107,14 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
private final int intValue;
private final String stringValue;
- Type(int intValue,String stringValue) {
+ Type(int intValue, String stringValue) {
this.intValue = intValue;
this.stringValue = stringValue;
}
/** Converts a type argument value into a query type */
public static Type getType(String typeString) {
- for (Type type:Type.values())
+ for (Type type : Type.values())
if (type.stringValue.equals(typeString))
return type;
return ALL;
@@ -329,8 +329,6 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
init(requestMap, queryProfile);
}
-
-
private void init(Map<String, String> requestMap, CompiledQueryProfile queryProfile) {
startTime = System.currentTimeMillis();
if (queryProfile != null) {