diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-10-12 15:56:15 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-10-12 15:56:15 +0200 |
commit | 12a0f01af06a247f58c701dca0d745bc27b41163 (patch) | |
tree | 257aab29f1acacb86b8648a9ed80e9471ee6b01a /container-search/src/main/java/com/yahoo/search/query/Presentation.java | |
parent | 943ca2b07aa41afc840dc339166cc4356b081794 (diff) |
Remove coverage attribute on query
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/Presentation.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/query/Presentation.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/Presentation.java b/container-search/src/main/java/com/yahoo/search/query/Presentation.java index 466ddf88299..cef3d46b947 100644 --- a/container-search/src/main/java/com/yahoo/search/query/Presentation.java +++ b/container-search/src/main/java/com/yahoo/search/query/Presentation.java @@ -64,9 +64,6 @@ public class Presentation implements Cloneable { /** The summary class to be shown */ private String summary = null; - /** Whether coverage information (how much of the indices was searched should be included in the result */ - private boolean reportCoverage=false; - /** The name of the renderer to use for rendering the hits. */ private ComponentSpecification format = RendererRegistry.defaultRendererId.toSpecification(); @@ -99,11 +96,15 @@ public class Presentation implements Cloneable { /** Sets whether matching query terms should be bolded in the result */ public void setBolding(boolean bolding) { this.bolding = bolding; } - /** Returns whether coverage information should be returned in the result, if available. Default is false */ - public boolean getReportCoverage() { return reportCoverage; } + /** @deprecated coverage information is always returned */ + @Deprecated + // TODO: Remove on Vespa 7 + public boolean getReportCoverage() { return true; } - /** Sets whether coverage information should be returned in the result, if available */ - public void setReportCoverage(boolean reportCoverage) { this.reportCoverage=reportCoverage; } + /** @deprecated coverage information is always returned */ + @Deprecated + // TODO: Remove on Vespa 7 + public void setReportCoverage(boolean ignored) { } /** Get the name of the format desired for result rendering. */ @NonNull |