From 4d201d14154491a0e28d477256d1e4728ef0fd80 Mon Sep 17 00:00:00 2001 From: Alexander Clare Date: Sun, 19 Jul 2015 00:49:39 -0400 Subject: [PATCH] Fix malformed query generation --- .../lucene/search/function/FieldValueFactorFunction.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/common/lucene/search/function/FieldValueFactorFunction.java b/core/src/main/java/org/elasticsearch/common/lucene/search/function/FieldValueFactorFunction.java index 135cb53f65f..8aa4897a8e0 100644 --- a/core/src/main/java/org/elasticsearch/common/lucene/search/function/FieldValueFactorFunction.java +++ b/core/src/main/java/org/elasticsearch/common/lucene/search/function/FieldValueFactorFunction.java @@ -161,9 +161,6 @@ public class FieldValueFactorFunction extends ScoreFunction { @Override public String toString() { - if (this == NONE) { - return ""; - } return super.toString().toLowerCase(Locale.ROOT); } }