Package org.ametys.cms.search.model
Interface IndexationAwareElementDefinition<T,X extends ModelAwareDataAwareAmetysObject>
- Type Parameters:
T- Type of the element valueX- type of ametys object supported by this definition
- All Superinterfaces:
Comparable<ModelItem>,ElementDefinition<T>,Labelable,ModelItem,ModifiableLabelable
- All Known Subinterfaces:
CriterionDefinitionAwareElementDefinition<T,,C, X> IndexationAwareSystemProperty<T,X>
- All Known Implementing Classes:
AbstractDateTimeIndexableSystemProperty,AbstractElementsReferencingProperty,AbstractIndexableContentProperty,AbstractIndexableProperty,AbstractIndexableStaticProperty,AbstractIndexableSystemProperty,AbstractMultiTypedValuesProperty,AbstractMultiValuesProperty,AbstractUserIndexableSystemProperty,CollectionsSystemProperty,CommentsSystemProperty,ComposedSingleModelItemsProperty,ComputedStepHolderProperty,ContainerMCCWorkflowStatusProperty,ContentElementReferencingProperty,ContentIdSystemProperty,ContentPrivacySystemProperty,ContentTypeSystemProperty,ContributorSystemProperty,CreationDateSystemProperty,CreatorSystemProperty,DegreeOrderProperty,DegreeTypeProperty,DisplayCodeProperty,ElementReferencingProperty,EnumeratingProperty,FirstValidationSystemProperty,FirstValidatorSystemProperty,FulltextSystemProperty,HasLiveVersionSystemProperty,InvalidContainerDataProperty,LanguageSystemProperty,LastMajorValidationSystemProperty,LastMajorValidatorSystemProperty,LastModifiedSystemProperty,LastValidationSystemProperty,LastValidatorSystemProperty,MemberProjectProperty,MultiContentValuesProperty,MultiStringValuesProperty,NearestOrgUnitsProperty,ODFPrimaryContentTypeProperty,OrgUnitAncestorProperty,OrphanSystemProperty,OverridenThematicsProperty,PagesSystemProperty,ParentContentSystemProperty,ParentProgramsProperty,ParentSubProgramsProperty,PinProperty,ProfiledGroupsTagsSystemProperty,ProgramMCCWorkflowStatusProperty,SemanticAnnotationSystemProperty,SharedProperty,SharedSystemProperty,SiteSystemProperty,SiteTypeSystemProperty,SubProgramParentProgramProperty,TagsSystemProperty,TagsSystemProperty,TrashElementSiteProperty,ViewBasedFullTextSystemProperty,WorkflowNameSystemProperty,WorkflowStepSystemProperty,WorkflowStepSystemProperty
public interface IndexationAwareElementDefinition<T,X extends ModelAwareDataAwareAmetysObject>
extends ElementDefinition<T>
Interface for indexable
ElementDefinition-
Field Summary
Fields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPEFields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptiondefault StringRetrieves the name of the element's solr facet fielddefault StringRetrieves the name of the element's solr fieldRetrieves the name of the element's solr sort fieldgetType()Retrieves the type.Get the element's valuedefault voidindexValue(org.apache.solr.common.SolrInputDocument document, X ametysObject, CMSDataContext context) Index the element in a solr document.default booleanGets if the element can be facetabledefault booleanGet if the element can be sorted on.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getValidator, getValidatorConfiguration, isEditable, isMultiple, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfigurationMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getNameMethods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON, toSAXMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
-
Method Details
-
indexValue
default void indexValue(org.apache.solr.common.SolrInputDocument document, X ametysObject, CMSDataContext context) Index the element in a solr document.- Parameters:
document- the solr document to index into.ametysObject- the ametysObject containing the element to index.context- the context of the data to index. Can not be null.
-
isSortable
Get if the element can be sorted on.- Returns:
trueif the element can be sorted on,falseotherwise.
-
isFacetable
Gets if the element can be facetable- Returns:
trueif the element can be facetable,falseotherwise.
-
getSolrFieldName
Retrieves the name of the element's solr field- Returns:
- the name of the element's solr field
-
getSolrSortFieldName
Retrieves the name of the element's solr sort field- Returns:
- the name of the element's solr sort field
-
getSolrFacetFieldName
Retrieves the name of the element's solr facet field- Returns:
- the name of the element's solr facet field
-
getValue
Get the element's value- Parameters:
ametysObject- the ametysObject containing the element- Returns:
- the values to index.
-
getType
Description copied from interface:ModelItemRetrieves the type.- Specified by:
getTypein interfaceElementDefinition<T>- Specified by:
getTypein interfaceModelItem- Returns:
- the type.
-