| org.compass.annotations.ManagedId
ManagedId | public enum ManagedId (Code) | | For class proeprties (
SearchableProperty , and
SearchableId , Compass
might require an internal meta-data to be created, so it can identify the correct
value that match the property and preform proper unmarshalling.
Compass can create this internal meta-data automatcially by analyzing all the properties
in the class using the
ManagedId.AUTO option. It can also not create the internal
meta-data using
ManagedId.FALSE and use the first meta-data as the intenral id,
or always create the intenal meta-data using
ManagedId.TRUE .
The other options allow to not create an interanl id and never unmarshalling that
property (
), and not creating an internal id in case there all the meta
data mappings fro that property have store="no" (
ManagedId.NO_STORE ).
author: kimchy |
Field Summary | |
Enum Constant | AUTO Compass will analyzer all the class mappings, and only create an
internal id if one is required. | Enum Constant | FALSE Compass will never create an internal meta-data for the property. | Enum Constant | NA Not set, will let Compass defaults (on the Searchable mapping and on the global
settings) to control this value. | Enum Constant | NO Compess will not create an internal id for this proeprty. | Enum Constant | NO_STORE Compass will not create an internal id for this property if all of its
meta data created have store="no". | Enum Constant | TRUE Compass will always create an intenral meta-data for the property. |
AUTO | Enum Constant AUTO(Code) | | Compass will analyzer all the class mappings, and only create an
internal id if one is required.
|
FALSE | Enum Constant FALSE(Code) | | Compass will never create an internal meta-data for the property.
|
NA | Enum Constant NA(Code) | | Not set, will let Compass defaults (on the Searchable mapping and on the global
settings) to control this value.
|
NO | Enum Constant NO(Code) | | Compess will not create an internal id for this proeprty. It will also
not try and unmarshall this property from the index.
|
NO_STORE | Enum Constant NO_STORE(Code) | | Compass will not create an internal id for this property if all of its
meta data created have store="no". In this case, it will also not try and
unmarshall it from the index.
|
TRUE | Enum Constant TRUE(Code) | | Compass will always create an intenral meta-data for the property.
|
|
|