Class DocumentOnlySchema

java.lang.Object
com.yahoo.schema.Schema
com.yahoo.schema.DocumentOnlySchema
All Implemented Interfaces:
ImmutableSchema

public class DocumentOnlySchema extends Schema
A search that was derived from an sd file containing no search element(s), only document specifications, so the name of this is decided by parsing and adding the document instance.
Author:
vegardh
  • Constructor Details

    • DocumentOnlySchema

      public DocumentOnlySchema(com.yahoo.config.application.api.ApplicationPackage applicationPackage, com.yahoo.config.application.api.FileRegistry fileRegistry, com.yahoo.config.application.api.DeployLogger deployLogger, com.yahoo.config.model.api.ModelContext.Properties properties)
  • Method Details

    • addDocument

      public void addDocument(SDDocumentType docType)
      Description copied from class: Schema
      Adds a document type which is defined in this search definition
      Overrides:
      addDocument in class Schema
      Parameters:
      docType - the document type to add