Interface SolrPersistentProperty
- All Superinterfaces:
org.springframework.data.mapping.PersistentProperty<SolrPersistentProperty>
- All Known Implementing Classes:
SimpleSolrPersistentProperty
public interface SolrPersistentProperty
extends org.springframework.data.mapping.PersistentProperty<SolrPersistentProperty>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet name of field under attention toFieldannotationbooleanbooleanReturns whether the property should be handled as dynamic property.booleanbooleanbooleanbooleanReturns whether the property is a potential score property of the owningPersistentEntity.booleanbooleanisStored()booleanisUnique()Methods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Method Details
-
getFieldName
String getFieldName()Get name of field under attention toFieldannotation- Returns:
-
isReadonly
boolean isReadonly()- Returns:
- true if
Fieldis present and not markedIndexed.readonly()=true
-
containsWildcard
boolean containsWildcard()- Returns:
- true if
Field.value()contains*
-
isSearchable
boolean isSearchable()- Returns:
- true if property shall be indexed in solr.
- Since:
- 1.3
-
isStored
boolean isStored()- Returns:
- true if property shall be stored and returned in result documents.
- Since:
- 1.3
-
isMultiValued
boolean isMultiValued()- Returns:
- true if property is collection like
- Since:
- 1.3
- See Also:
-
PersistentProperty.isCollectionLike()
-
getSolrTypeName
- Returns:
- mapped solr type name
- Since:
- 1.3
-
getDefaultValue
- Since:
- 1.3
-
getCopyFields
Collection<String> getCopyFields()- Returns:
- list of fields the current fields value shall be copied to
- Since:
- 1.3
-
isUnique
boolean isUnique()- Returns:
- Since:
- 1.3
-
isRequired
boolean isRequired()- Returns:
- Since:
- 1.3
-
isScoreProperty
boolean isScoreProperty()Returns whether the property is a potential score property of the owningPersistentEntity. This method is mainly used byPersistentEntityimplementation to discover score property candidates onPersistentEntitycreation you should rather call to determine whether the current property is the score property of thatPersistentEntityunder consideration.- Returns:
- Since:
- 1.4
-
isDynamicProperty
boolean isDynamicProperty()Returns whether the property should be handled as dynamic property.- Returns:
- Since:
- 1.5
- See Also:
-
isChildProperty
boolean isChildProperty()- Returns:
- true if property has set annotation
Field.child()to true or is annotated withChildDocument. - Since:
- 3.0
-