Change DocumentReference to use Field instead of SDField
// Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition;
-import com.yahoo.searchdefinition.document.SDField;
+import com.yahoo.document.Field;
/**
* Represents a document reference. Contains the document reference field and the search instance of the referred document.
@@ -10,15 +10,15 @@ import com.yahoo.searchdefinition.document.SDField;
*/
public class DocumentReference {
- private final SDField documentReferenceField;
+ private final Field documentReferenceField;
private final Search search;
- public DocumentReference(SDField documentReferenceField, Search search) {
+ public DocumentReference(Field documentReferenceField, Search search) {
this.documentReferenceField = documentReferenceField;
this.search = search;
}
- public SDField documentReferenceField() {
+ public Field documentReferenceField() {
return documentReferenceField;
}
