Get in touch 01795 905292

Upgrading to Umbraco 19 with a custom Examine index - Part 3 of 3

Upgrading to Umbraco 19 with a custom Examine index - Part 3 of 3

This is the last part of a three-part blog series based on my talk, From Examine to Umbraco Search, at the Umbraco Kent Meetup on 16 November 2026. If you're new to Umbraco Search, start with part 1: What is Umbraco Search? A guide for Examine developers. You can also watch the recording on the Umbraco Community YouTube channel.

  1. What is Umbraco Search? A guide for Examine developers

  2. Migrating Examine code to Umbraco Search on Umbraco 17

  3. Upgrading to Umbraco 19 with a custom Examine index (this post)

Part 2 ported the common Examine patterns to Umbraco Search on Umbraco 17. This part covers the Umbraco 19 upgrade itself, what still works afterwards, and the harder case: a site with its own custom Examine index. To test that, I built the same site search with category facets four different ways, then upgraded one of them to the Umbraco 19 RC. The source for all of them, and the slides, are on GitHub.

What Umbraco 19 removes

  • Umbraco's Examine integration is gone: UmbracoContentIndex, the value set builders and the validators.

  • IPropertyIndexValueFactory is gone. A custom property editor's values now come from an IPropertyValueHandler, and extra fields move to an IContentIndexer.

  • The Umbraco Search packages, AddBackOfficeSearch(), AddDeliveryApiSearch() and DisableDefaultExamineIndexes() all go.

  • The public API moves into Umbraco.Cms.Core, while the dependency injection and Examine provider namespaces stay where they are.

  • IPublishedContentQuery.Search() works again, for the text-search overloads.

Upgrading Umbraco Search to Umbraco 19

Before you start, check every package you use has a release for 19. Packages built for 17 may not load, and the Clean starter kit's 17 release didn't. I've written before about applying CMS updates without breaking your website, and all of that applies here. If you're coming from an older version, these are the Umbraco upgrade paths.

Remove the add-on, upgrade and tidy up

1. Remove the add-on references: Core, the Examine provider, BackOffice, and DeliveryApi if you used it. From 19, Umbraco.Cms brings in Core and the Examine provider itself, and BackOffice and DeliveryApi are folded into the CMS.

dotnet package remove Umbraco.Cms.Search.Core
dotnet package remove Umbraco.Cms.Search.Provider.Examine
dotnet package remove Umbraco.Cms.Search.BackOffice

2. Upgrade Umbraco.Cms to 19. Umbraco Search registers itself through its own composers.

3. Tidy up the composer. AddBackOfficeSearch, AddDeliveryApiSearch if you used it, and DisableDefaultExamineIndexes no longer exist, because back office and Delivery API search are built in, and there are no default indexes left to disable. AddSearchCore and AddExamineSearchProvider are idempotent, so you can keep them or delete the composer.

// Optional on 19: both are idempotent
builder
    .AddSearchCore()
    .AddExamineSearchProvider();

// Gone in 19, so remove:
//   .AddBackOfficeSearch()
//   .AddDeliveryApiSearch()  // if used
//   builder.DisableDefaultExamineIndexes();

Fix the namespaces and config

Types and signatures are unchanged, but it isn't a simple prefix swap. ISearcher moves to Umbraco.Cms.Core.Search, the query types to Umbraco.Cms.Core.Search.Querying, notifications such as ContentIndexingNotification to Umbraco.Cms.Core.Notifications, and Constants.IndexAliases becomes Constants.Search.IndexAliases. A using alias saves editing every reference, so don't find-and-replace blindly.

If you're on Azure or behind a load balancer, check your config too. Umbraco:CMS:Examine:LuceneDirectoryFactory moves to Umbraco:CMS:Search:Examine:LuceneDirectoryFactory, and 19 doesn't read the old key. Miss it and the indexes silently go back to umbraco/Data/TEMP/ExamineIndexes, with no error at start-up.

What still works on Umbraco 19

Your ported ISearcher code still works after the namespace edits, and Examine is still the default provider.

IPublishedContentQuery.Search() on Umbraco 19

IPublishedContentQuery.Search() works again, now on Umbraco Search, but it's still not recommended, and it behaves differently. "All cultures" now means the current culture plus invariant content, and without paging it returns at most 500 results, up from Examine's default of 100. Only the text-search overloads remain; the IQueryExecutor overloads and loadedFields are gone. The IPublishedContentQuery docs for Umbraco 19 cover the methods that are left.

Querying Examine directly with IExamineManager on Umbraco 19

IExamineManager can still be resolved, so heavy custom Examine or raw Lucene queries still run. But point them at Umbraco Search's indexes and you're querying its index format, with the Field_ names from part 2. And the upgrade deletes the old index folders under umbraco/Data/TEMP/ExamineIndexes, custom ones included.

Kenn's Can I still use Examine with Umbraco? explains where your index values end up and how to query them.

Even so, treat it as a stopgap. That's Umbraco's advice too: the Umbraco 19 upgrade docs say code using IExamineManager, custom Examine indexes or index value factories must move to the Umbraco Search APIs: ISearcher to query and IIndexer to index.

The documented migration path assumes you search Umbraco's default index. Many real sites don't. They have a custom UmbracoContentIndex with its own validator and field definitions. They add extra fields in TransformingIndexValues, such as the site root, content type flags and picked categories. And they build facets by hand, because Examine 3 has no facet API.

That's the case Umbraco 19 hits hardest, because the plumbing that fills those indexes is removed. So I built one of those searches, and moved it to Umbraco Search four different ways.

One search, built four ways

The demo site is Paul Seal's Clean starter kit on Umbraco 17.7.1, with the home tree copied to a second root, so there are two sites in one install. Every project does the same thing: search scoped to the current site, keywords, a Blog posts or Pages filter, sorting and paging, category facets with counts and removable chips, and AJAX updates that keep the URL shareable. Only the search code, the project files and the ports differ.

Project

Search

Index fed by

Facets

Umbraco 19

1. Examine

Examine fluent API on a custom UmbracoContentIndex

Umbraco core

Lucene.Net facet module

No: plumbing removed

2. Umbraco Search

ISearcher on the built-in Umb_PublishedContent

Umbraco Search

KeywordFacet

Yes, with small edits

3. Custom index

Examine fluent API on a custom UmbracoContentIndex

Umbraco core

Examine 4 WithFacets

No: 17 and 18 only

4. Examine indexer

Examine fluent API on a plain LuceneIndex

Umbraco Search, via IIndexer

Examine 4 WithFacets

Yes: runs on the 19 RC

Projects 1 and 3 rely on Umbraco core filling an UmbracoContentIndex. That plumbing doesn't exist in 19, so neither can upgrade as it is. Project 2 relies only on Umbraco Search, so it upgrades with small edits. Project 4 is a plain Lucene index that Umbraco Search maintains, designed for 19. I've upgraded a copy to the Umbraco 19 RC and it runs; that's project 5 in the repository. Project 4's verdict comes from that run, and the others come from the Umbraco 19 source code.

How project 4 works: Umbraco Search feeding an Examine index

Project 4 is the one I'd look at if you have a custom index today. It keeps the Examine index and the queries, but hands the indexing to Umbraco Search. The index is registered the same way the Examine provider registers Umb_PublishedContent:

options.RegisterContentIndex<
    SiteSearchIndexer,
    SiteSearchIndexSearcher,
    IPublishedContentChangeStrategy>(
    "SiteSearchIndex",
    UmbracoObjectTypes.Document);

Umbraco Search then handles change tracking, protected content and rebuilds, and the index shows up in Settings > Search, where it's rebuilt on boot if it's missing. The extra fields come from an IContentIndexer, as in project 2, and the search code is project 1's Examine query, with a hasTemplate field standing in for templateID.

The SiteSearchIndexer is an IIndexer, and it has four jobs:

  • AddOrUpdateAsync maps Umbraco Search's fields to your own field names and writes one document. For protected content and excluded document types it deletes instead, which was the validator's job.

  • DeleteAsync also removes descendants, so index the Umb_PathIds keywords and delete everything with the key in its path.

  • ResetAsync empties the index at the start of a rebuild.

  • GetMetadataAsync returns the document count and health shown in Settings > Search.

The registration also needs an ISearcher. If your site queries Examine directly, a minimal keyword search with skip and take is enough, and anything searching through Umbraco Search still gets results. Kenn's Mix and match search providers covers the same IIndexer and ISearcher pattern for whole providers.

Comparing the search results

I compared 72 searches across all four. Project 3 is identical to today, project 4 differs only on picker references inside blocks, and project 2 changes matching and ranking, which users will notice.

Which approach should you choose?

3. Custom index alongside

4. Examine indexer

2. Full Umbraco Search

Rework from project 1

Least: mostly facets

Most new code: an indexer and a minimal searcher; queries kept

Every query rewritten

Runs on Umbraco 19

No

Yes (run on the 19 RC)

Yes (checked against the source)

Keeps Examine queries

Yes

Yes

No

Results vs today

Identical

Identical except picker references in blocks

Different matching and ranking

Use it when

You want Umbraco Search in the back office now, with least effort

You want to keep Examine queries for now; Umbraco advises ISearcher

You want Umbraco Search's querying, or are starting fresh

If you just want Umbraco Search in the back office now, project 3 is the least effort, but you'll be back before 19. Project 4 is the bridge: your Examine queries stay, and the indexing is already on Umbraco Search, so when you do move to ISearcher only the queries change. It runs on 17 today, so you can skip project 3 entirely. Project 2 is where you end up, and where I'd start if I were building search from scratch.

Whichever you choose, do the porting now, on 17 or 18, while both run side by side.

Audit your Umbraco site now

Search your solution for these; the number of hits tells you how much porting there is to do.

  • IExamineManager, ExternalIndex and Constants.UmbracoIndexes: code using the default indexes directly.

  • IPublishedContentQuery and .Search(: the convenient search, including in views.

  • .NodeTypeAlias(: the alias gotcha.

  • TransformingIndexValues, IValueSetBuilder and UmbracoContentIndex: custom indexing, the hard case.

About half of those are removed in 19. The rest still compile, apart from the Search() overloads that take an Examine query, but some behave differently. IExamineManager no longer finds ExternalIndex, TransformingIndexValues only sees Umbraco Search's documents or your own, and IPublishedContentQuery.Search() searches the current culture, not all of them.

Then check the code you didn't write:

If you'd like a hand with the audit or the migration itself, it's part of our Umbraco migration work, and we can include it in an Umbraco health check, so get in touch.

Talk recording, source code and further reading

That's the end of the series. If you skipped ahead, part 1 explains how Umbraco Search works and part 2 ports the common Examine patterns.

Thanks to Kenn Jacobsen, whose migration walkthrough and blog articles this series builds on, and to everyone who came along to the Umbraco Kent Meetup.

Justin Neville

Written by Justin Neville

Justin has worked in software development since 1998. He began writing C and C++ applications, moving to C# and .NET development in 2002. From 2002 to 2013 he built large-scale internal web applications for major companies in the finance and insurance sectors. In 2013, he founded Nevitech IT Solutions Ltd, and since then has focused exclusively on building and supporting websites using Umbraco CMS.

Justin is an Umbraco Certified Master and an Umbraco MVP for 2026. He won the Umbraco AI Package Award for his AI Log Analyser package, contributes to the Umbraco CMS core, and co-organises the Umbraco Kent Meetup. His particular strengths include system architecture, performance optimisation, complex troubleshooting, and writing clean, scalable code. He also mentors junior developers and works closely with agency partners on complex builds requiring specialist expertise.

More articles by Justin