Package com.yahoo.vespa.documentmodel
Class SearchDef
java.lang.Object
com.yahoo.vespa.documentmodel.SearchDef
- Since:
- 2010-02-19
- Author:
- baldersheim
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(com.yahoo.document.DocumentType source) Adds a document that can be mapped to this search.add
(SearchField field) Adds a search field to the definition.getName()
This will provide you with the name of the searchdefinition.getViews()
-
Constructor Details
-
SearchDef
Will create a SearchDef with the given name- Parameters:
name
- The name of the searchdefinition
-
-
Method Details
-
getName
This will provide you with the name of the searchdefinition.- Returns:
- The name of the searchdefinition.
-
getFields
-
getViews
-
add
Adds a document that can be mapped to this search.- Parameters:
source
- A document that can be mapped to this search.- Returns:
- Itself for chaining.
-
add
Adds a search field to the definition.- Parameters:
field
- The field to add.- Returns:
- Itself for chaining.
-
addAlias
-
add
-