Class SchemaDef

java.lang.Object
com.yahoo.vespa.documentmodel.SchemaDef

public class SchemaDef extends Object
Author:
baldersheim
  • Constructor Details

    • SchemaDef

      public SchemaDef(String name)
      Creates a SearchDef with the given name.
  • Method Details

    • getName

      public String getName()
    • getFields

      public Map<String,SearchField> getFields()
    • getIndexNames

      public Set<String> getIndexNames()
    • add

      public SchemaDef add(com.yahoo.document.DocumentType source)
      Adds a document that can be mapped to this schema.
      Parameters:
      source - a document that can be mapped to this schema.
      Returns:
      Itself for chaining.
    • add

      public SchemaDef add(SearchField field)
      Adds a search field to the schema.
      Parameters:
      field - the field to add
      Returns:
      this, for chaining
    • addAlias

      public SchemaDef addAlias(String alias, String aliased)
    • addIndexName

      public SchemaDef addIndexName(String indexName)