Package de.cxp.ocs.model.index
Class Document
java.lang.Object
de.cxp.ocs.model.index.Document
- Direct Known Subclasses:
Product
A simple 'data record' similar to a row inside a CSV file that contains any
data relevant for search. The single field types and conversions are part of
the according service configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(Attribute attr) addCategory
(Category... values) Deprecated.use addPath with a specific name.Add a hierarchical path for a given field name.setAttributes
(Attribute... values)
-
Field Details
-
id
-
data
-
attributes
-
categories
Deprecated.
-
-
Constructor Details
-
Document
public Document()
-
-
Method Details
-
set
-
set
-
set
-
set
-
addPath
Add a hierarchical path for a given field name. This is usable in case you have multiple different category trees.- Parameters:
name
- field namevalues
- single path hierarchy- Returns:
- the modified document (fluent return)
-
setAttributes
-
addAttribute
-
addCategory
Deprecated.use addPath with a specific name. For legacy usage, use the field name used in the according indexer field configuration.- Parameters:
values
- single path- Returns:
- modified document (fluent return)
-