Guide · updated

Custom Oak indexes on AEM as a Cloud Service: naming, deployment and testing

Indexes are one of the quieter migration risks. An AEM 6.5 instance often carries indexes created by hand in CRXDE years ago. On AEM as a Cloud Service, indexes are code: versioned, deployed through Cloud Manager and built before traffic switches to a new release.

Naming

KindConventionExample
Fully custom index<prefix>.<indexName>-<productVersion>-custom-<customVersion>/oak:index/acme.product-1-custom-2
Customised out-of-the-box indexthe product index name followed by -custom- and a numberdamAssetLucene-8-custom-1

Bump the custom version for every change. Adobe asks you to treat deployed index definitions as immutable; to remove an index, deploy a new version that replaces it, such as a dummy index.

Deployment

  • Definitions live in the ui.apps package under _oak_index and are deployed by Cloud Manager.
  • Adobe recommends filevault-package-maven-plugin 1.3.2 or later with immutableRootNodeNames set to apps,libs,oak:index, allowIndexDefinitions enabled for custom index definitions, and noIntermediateSaves so configurations are added atomically.
  • For most indexes Adobe recommends Simplified Index Management with a single diff.index/diff.json file. Indexes that cover /apps or /libs, or have no includedPaths, still use the legacy format.

How changes roll out

Cloud Service uses rolling deployments: the old and new application versions run against the same repository for a while, so each version gets its own index set. Before the switch, the repository is reindexed with the new definitions. Large indexes therefore make deployments slower; plan index changes, do not slip them in with a hotfix.

What is not supported

  • Index customisations must be type lucene, with async set to [async], [async,nrt] or [fulltext-async], and compatVersion 2 for index management.
  • Custom analyzers are not supported; only standard analyzers are.
  • Similarity search by feature vectors (useInSimilarity = true) is not supported.
  • Indexing the contents of /oak:index is not supported.

A migration checklist for indexes

  1. Export every index definition from the 6.5 repository and compare it with the product's out-of-the-box version.
  2. Drop indexes nothing queries; keep a list of the queries each remaining index serves.
  3. Convert the rest to the naming convention and lucene type, using Adobe's Oak indexing tools where they help.
  4. Test the queries on a Rapid Development Environment or dev environment with production-like content volume, and watch for traversal warnings in the logs.
  5. Deploy index changes on their own and time the reindex before a production release depends on it.

Check your own site or code for free

This guide covers the AEM code and platform side of a move. The pages are a separate job, and that is the job the four steps do.

Surge Migrate moves a website from any CMS to any CMS in four steps: Scan, Convert, Verify, Install. Pages are converted automatically, and you check the result before you install anything.

Sources

Any CMS to any CMS

Scan, Convert, Verify, Install

This guide covers one part of a move. Surge Migrate moves the pages, from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

No account needed. Public pages only, robots.txt obeyed. Nothing is installed in your system by these tools.