I think the Url type is excluded by default.
Perhaps you could add the field as a string. Add the following to an initializable module:
SearchClient.Instance.Conventions.ForInstancesOf<StartPage>().IncludeField(x => x.CrazyUrl.ToString())
Remember to reindex! :-)
Tip: In situatiions like this you might want to check out EPiCode.InspectInIndex
I don't see IncludeField in that namespace anymore. Is there an alternative in the newer APIs? (EPiServer.Find.Cms version is 12.2.4.0)
It's still the same.
It's in EPiServer.Find.ClientConventions in EPiserver.Find.dll
Ah, thanks that make sense - I was missing the ClientConventions bit i.e.
ContentIndexer.Instance.Conventions.ForInstancesOf<Fixture>().IncludeField(x => x.Tickets); //fail
Whereas this looks like it will work:
SearchClient.Instance.Conventions.ForInstancesOf<Fixture>().IncludeField(x => x.Tickets);
Hi,
I've created a Url property like this:
When I get search hits (projections) using EPiServer Find 10, MyUrl is empty.
I've also checked the search index in EPiServer CMS by navigating to Find / Overview; MyUrl field is not indexed.
The property is properly stored into a database. I can fetch it using ContentLoader / ContentRepository.
Has anyone run into the same problem?