This is the error:
'Content with id '286580' is of type 'Castle.Proxies.ImageOrVideoBlockProxy' which does not inherit required type 'EPiServer.Core.PageData''
The error occurs on search.GetPagesResult();. Here's what the code looks like:
var filter = BuildFilter(searchQuery, name, state, city, lat, lng, amenities, type, eventTypes, isVenue);
var search = client.Search<ClubPage>().Filter(filter).Take(MAXRESULTS);
if (sort == "distance" && lat != null && lng != null)
search = search.OrderBy(p => p.Location).DistanceFrom(GetGeoLocation(lat, lng));
search = search.OrderBy(p => p.DisplayName);
var results = search.GetPagesResult();
I ran the Find indexing before I exported the int database for local testing. And I made sure that the find URL and index for integration was in my web.config. Any ideas what's going on here?
It looks as though something in your index has been corrupted.
When restoring databases, it would be better to clear the index first and ensure the index is empty before re-indexing.
If the problem exists after this, then you can either ask support to remove just that content using the id. Or you could write you own extension to allow you to enter an id and remove it from the index.
You can reindex your content using this Scheduled job for indexing (Find 9) | Optimizely Developer Commun
it will clear the indexes once completes
You should b abl to following the process here https://support.optimizely.com/hc/en-us/articles/4413200747789-Clear-the-index-and-reindexing