public class ContentValuesExtractorFactory.SearchModelContentValuesExtractor extends Object
SearchModel
.Modifier and Type | Field and Description |
---|---|
private boolean |
_fullValues |
private SearchModel |
_searchModel |
Constructor and Description |
---|
SearchModelContentValuesExtractor(SearchModel searchModel)
Build a ContentValuesExtractor referencing a
SearchModel . |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getValues(Content content)
Get the values from the given content.
|
Map<String,Object> |
getValues(Content content,
Map<String,Object> contextualParameters)
Get the values from the given content.
|
protected void |
putPropertyValue(Map<String,Object> properties,
ResultField column,
Object value)
Put a result value at its right place in the properties map.
|
ContentValuesExtractorFactory.SearchModelContentValuesExtractor |
setFullValues(boolean fullValues)
Whether to return full values or not.
|
private SearchModel _searchModel
private boolean _fullValues
public SearchModelContentValuesExtractor(SearchModel searchModel)
SearchModel
.searchModel
- the SearchModel
.public ContentValuesExtractorFactory.SearchModelContentValuesExtractor setFullValues(boolean fullValues)
fullValues
- true to return full values, false otherwise.public Map<String,Object> getValues(Content content)
content
- The content.public Map<String,Object> getValues(Content content, Map<String,Object> contextualParameters)
content
- The content.contextualParameters
- The search contextual parameters.protected void putPropertyValue(Map<String,Object> properties, ResultField column, Object value)
properties
- the properties map to fill.column
- the search column.value
- the result value.