Interface IndexableModelItemType
- All Superinterfaces:
ModelItemType
,PluginAware
- All Known Subinterfaces:
IndexableElementType<T>
,SortableIndexableElementType<T>
- All Known Implementing Classes:
BinaryIndexableElementType
,BinaryRepositoryElementType
,BooleanIndexableElementType
,BooleanRepositoryElementType
,ContentContentElementType
,ContentIndexableElementType
,ContentRepositoryElementType
,DateIndexableElementType
,DateRepositoryElementType
,DateTimeIndexableElementType
,DateTimeRepositoryElementType
,DoubleIndexableElementType
,DoubleRepositoryElementType
,FileContentElementType
,FileIndexableElementType
,FileRepositoryElementType
,GeocodeIndexableElementType
,GeocodeRepositoryElementType
,HTMLRichTextContentElementType
,HTMLRichTextRepositoryElementType
,LongIndexableElementType
,LongRepositoryElementType
,MultilingualStringIndexableElementType
,MultilingualStringRepositoryElementType
,PasswordRepositoryElementType
,ReferenceContentElementType
,ReferenceIndexableElementType
,ReferenceRepositoryElementType
,RichTextContentElementType
,RichTextIndexableElementType
,RichTextRepositoryElementType
,StringIndexableElementType
,StringRepositoryElementType
,UserIndexableElementType
,UserRepositoryElementType
Interface for model item types that can be indexed
-
Method Summary
Modifier and TypeMethodDescriptionvoid
indexValue
(org.apache.solr.common.SolrInputDocument document, org.apache.solr.common.SolrInputDocument rootObjectDocument, String fieldName, Object value, DataContext context) Index the given value in a solr document.Methods inherited from interface org.ametys.runtime.model.type.ModelItemType
getId, valueToJSONForClient, valueToJSONForClient, valueToJSONForEdition, valueToSAX, valueToSAX, valueToSAXForEdition
Methods inherited from interface org.ametys.runtime.plugin.component.PluginAware
setPluginInfo
-
Method Details
-
indexValue
void indexValue(org.apache.solr.common.SolrInputDocument document, org.apache.solr.common.SolrInputDocument rootObjectDocument, String fieldName, Object value, DataContext context) Index the given value in a solr document.- Parameters:
document
- the solr document to index into.rootObjectDocument
- the solr document of the root object.fieldName
- the name of the indexing fieldvalue
- the value to indexcontext
- the context of the data to index. Can not be null.
-