aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-04-07 20:03:10 +0000
committerArne H Juul <arnej@yahooinc.com>2022-04-08 06:17:30 +0000
commite2983bcf08f3fac86774e663a8a1f3c79060a40c (patch)
treeceef9e570930e5843a979cd6acb99068b984406a /config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java
parentd253aadca678b72bf70952adf6f6d78fb6668355 (diff)
prefer registerDocumentType
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java b/config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java
index cd146c45065..91dca70d107 100644
--- a/config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java
+++ b/config-model/src/main/java/com/yahoo/vespa/documentmodel/SearchDef.java
@@ -1,7 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.documentmodel;
-import com.yahoo.document.DataType;
+import com.yahoo.document.DocumentType;
import com.yahoo.document.DocumentTypeManager;
import java.util.HashMap;
@@ -47,8 +47,8 @@ public class SearchDef {
* @param source A document that can be mapped to this search.
* @return Itself for chaining.
*/
- public SearchDef add(DataType source) {
- sources.register(source);
+ public SearchDef add(DocumentType source) {
+ sources.registerDocumentType(source);
return this;
}