summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/Index.java
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2020-02-28 22:39:07 +0100
committerGitHub <noreply@github.com>2020-02-28 22:39:07 +0100
commitaa65246929dd7f51a8d71619b831601af70c9938 (patch)
tree8ca0b978f81c410bba00aa1c3983e10ee195815f /container-search/src/main/java/com/yahoo/prelude/Index.java
parent9ac4f3d18e1dbb11678b8d61fa50c9ad1cdf61d2 (diff)
Revert "Turn phrase segmenting off by default"
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/Index.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/Index.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/Index.java b/container-search/src/main/java/com/yahoo/prelude/Index.java
index 5e7fddd7fe7..365ee299ca4 100644
--- a/container-search/src/main/java/com/yahoo/prelude/Index.java
+++ b/container-search/src/main/java/com/yahoo/prelude/Index.java
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude;
+
import com.yahoo.language.process.StemMode;
import java.util.ArrayList;
@@ -9,6 +10,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.Set;
+
/**
* Information about configured settings of a field or field collection (an actual index or not) in a search definition.
* There are two types of settings:
@@ -72,8 +74,8 @@ public class Index {
private boolean isNGram = false;
private int gramSize = 2;
- /** Whether implicit phrases should lead to a phrase item or an and item. */
- private Boolean phraseSegmenting = false;
+ /** Whether implicit phrases should lead to a phrase item or an and item */
+ private boolean phraseSegmenting = true;
/** The string terminating an exact token in this index, or null to use the default (space) */
private String exactTerminator = null;