Cloud Manager code quality · Oak index definition rules (OakPAL) · updated
oakpal-same-property-different-analyzed-values: Same property with different analyzed values in the same index definition
This check fires when one index definition sets analyzed=true for a property under one node type rule and not under another, as in Adobe's example of status under dam:Asset and dam:cfVariationNode. Use the same analyzed value for that property in every rule of the index; remember an unset analyzed means false.
| Rule key | oakpal-same-property-different-analyzed-values |
|---|---|
| Adobe's rule name | Same property with different analyzed values in the same index definition |
| Type | Code Smell |
| Severity | Minor |
| Since | not listed |
| Checked by | OakPAL scan of your content packages |
Why Cloud Manager flags it
Lucene stores an analysed property (tokenised, lower-cased, for full-text) differently from a non-analysed one (exact value). If one index mixes both for the same property name, a query like jcr:contains(status, 'approved') can match on one node type and not the other, and the result depends on which rule the node fell under. Adobe's page lists this check without a key, type or severity; it is part of the OakPAL index checks.
Adobe's example in table form
| Rule | Property | analyzed | Result |
|---|---|---|---|
| dam:Asset | status | true | Conflict |
| dam:cfVariationNode | status | (unset = false) | Conflict |
| Both rules | status | true (both) | Compliant |
| Both rules | status | unset (both) | Compliant |
Example
Non-compliant
<dam:Asset jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<status jcr:primaryType="nt:unstructured" name="jcr:content/metadata/status" analyzed="{Boolean}true"/>
...
<dam:cfVariationNode jcr:primaryType="nt:unstructured">
<properties jcr:primaryType="nt:unstructured">
<status jcr:primaryType="nt:unstructured" name="status"/>Compliant
<status jcr:primaryType="nt:unstructured" name="jcr:content/metadata/status" analyzed="{Boolean}true"/>
...
<status jcr:primaryType="nt:unstructured" name="status" analyzed="{Boolean}true"/>How to fix it
- For each index, list property definitions by property name across all index rules.
- Where analyzed differs, decide: full-text search on it (true) or exact match (false).
- Set the same value everywhere in that index, explicitly.
- Ship as a new -custom-N and retest the queries on both node types.
Does it stop the pipeline?
Code smells feed the Maintainability Rating, which is based on the total estimated fix time as a share of development time, not on any single finding. One finding rarely moves it, but hundreds can push the rating below A, which is an important failure: the pipeline pauses until someone overrides or fixes it.
If a finding is a genuine false positive, Adobe's code quality page lets you annotate the code with @SuppressWarnings and the rule ID. In a full-stack pipeline, important failures can be overridden by a deployment manager, project manager or business lead; in a code-quality-only pipeline they cannot.
Related pages on this site
Questions
Does the property name or the path count?
Adobe's example compares the property under two node types. Treat any property name indexed in several rules as needing a consistent analyzed value.
When should a property be analyzed?
When you search words inside it (titles, descriptions). For status codes, IDs and tags, exact match is usually right.
Why does Adobe list no severity?
The page lists this check without key or metadata. Fix it anyway; the bug it prevents is inconsistent search results.
See the Cloud Service blockers in your code before Cloud Manager shows them. The free Surge Migrate readiness scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists them with file, fix and effort. Nothing is uploaded.
Sources
- Adobe: Custom code quality rules (checked 10 Nov 2026)
- Adobe: Code quality testing in Cloud Manager (checked 10 Nov 2026)
- Adobe: Content search and indexing (checked 10 Nov 2026)
Rule key, type, severity and version are as listed on Adobe's page, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.