diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/IndexFacts.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/IndexFacts.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java b/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java index 2fcd2466dd8..1fd8cce9889 100644 --- a/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java +++ b/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java @@ -253,11 +253,14 @@ public class IndexFacts { /** * Freeze this to prevent further changes. + * + * @return this for chaining */ - public void freeze() { + public IndexFacts freeze() { hasNGramIndices = hasNGramIndices(); // TODO: Freeze content! frozen = true; + return this; } /** Whether this contains any index which has isNGram()==true. This is free to ask on a frozen instance. */ |