
| Key: |
CMP-623
|
| Type: |
New Feature
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Shay Banon
|
| Reporter: |
Shay Banon
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
Currently, Compass hard codes the default store value (for example) for a mapping that do not specify it explicitly in the mappings (which is now set to YES). Compass should allow to specify the global defaults for store and other mapping definitions if they are not set.
The settings should be (copied from the CompassEnvironment javadoc):
/**
- The default value of store for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be {@link org.compass.core.Property.Store#YES}.
*/
public static final String GLOBAL_STORE = "compass.mapping.globalStore";
/**
- The default value of index for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be {@link org.compass.core.Property.Index#TOKENIZED}
- for most properties unless the converer suggested otherwise (such as
- {@link org.compass.core.Property.Index#UN_TOKENIZED} for numbers.
*/
public static final String GLOBAL_INDEX = "comapss.mapping.globalIndex";
/**
- The default value of term vector for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be {@link org.compass.core.Property.TermVector#NO}.
*/
public static final String GLOBAL_TERM_VECTOR = "compass.mapping.globalTermVector";
/**
- The default value of omit norms for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be <code>false</code>.
*/
public static final String GLOBAL_OMIT_NORMS = "compass.mapping.globalOmitNorms";
|
|
Description
|
Currently, Compass hard codes the default store value (for example) for a mapping that do not specify it explicitly in the mappings (which is now set to YES). Compass should allow to specify the global defaults for store and other mapping definitions if they are not set.
The settings should be (copied from the CompassEnvironment javadoc):
/**
- The default value of store for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be {@link org.compass.core.Property.Store#YES}.
*/
public static final String GLOBAL_STORE = "compass.mapping.globalStore";
/**
- The default value of index for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be {@link org.compass.core.Property.Index#TOKENIZED}
- for most properties unless the converer suggested otherwise (such as
- {@link org.compass.core.Property.Index#UN_TOKENIZED} for numbers.
*/
public static final String GLOBAL_INDEX = "comapss.mapping.globalIndex";
/**
- The default value of term vector for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be {@link org.compass.core.Property.TermVector#NO}.
*/
public static final String GLOBAL_TERM_VECTOR = "compass.mapping.globalTermVector";
/**
- The default value of omit norms for mappings. If set, will be used for all the mappings
- that have not explicitly set it. If not set, will be <code>false</code>.
*/
public static final String GLOBAL_OMIT_NORMS = "compass.mapping.globalOmitNorms";
|
Show » |
| There are no comments yet on this issue.
|
|