Try our conversational search powered by Generative AI!

Map custom field to excerpt


I'm working on Find 15.0.0, CMS 12.23.0

We have a search page on our website that uses unified search. For a particular page I want to map excerpt to a particular field of that page.

I tried with below code, but now its taking first line of another field (body)

                .ProjectExcerptUsing<NewsPage>(page => x => x.Manchet.ToString())
                .ProjectMetaDataFrom(page => new Dictionary<string, IndexValue>
                    { MetadataPropsNames.ImageUrl, page.Image.GetFriendlyUrl() },
Jan 18, 2024 14:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.