Package com.yahoo.vespa.documentmodel
Class SchemaDef
java.lang.Object
com.yahoo.vespa.documentmodel.SchemaDef
- Author:
- baldersheim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(com.yahoo.document.DocumentType source) Adds a document that can be mapped to this schema.add(SearchField field) Adds a search field to the schema.addIndexName(String indexName) getName()
-
Constructor Details
-
SchemaDef
Creates a SearchDef with the given name.
-
-
Method Details
-
getName
-
getFields
-
getIndexNames
-
add
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
Adds a search field to the schema.- Parameters:
field- the field to add- Returns:
- this, for chaining
-
addAlias
-
addIndexName
-