SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-623
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Shay Banon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

Allow to globally set the global default store/index/term-vector/omit-norms for mappings that don't explicitly specify them

Created: 17/Apr/08 04:12 PM   Updated: 17/Apr/08 04:13 PM
Component/s: Compass::Core
Affects Version/s: None
Fix Version/s: 2.0.0 RC2


 Description  « Hide
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";


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.