What fields are used to derive the Excerpt?
Hello -- I am using Coveo for Sitecore, Nov 2014 version.
I have a web page which has some custom fields on it, and uses a custom MVC rendering to display those fields. These fields are either single-line text or multi-line rich text.
One of the pages contains (in the custom fields) a sentence which contains the words "oil mist". When the page is published, the custom field is added to the index with the full sentence and I can search for that page using the search term "oil mist" (or oil or mist), so the full-text search is working fine.
However, the "Excerpt" for that page in the search results is empty. I would have expected that the Excerpt field would contain some snippet of text with the words "oil mist".
PDF documents containing the words "oil mist" somewhere in the body of the document DO have a valid Excerpt field which shows the highlighted words.
I have enabled the "HtmlContentInBodyWithRequestsProcessor" in the post-item processing pipeline, but the result is the same with or without that processor.
Is there something special I have to do to get a valid Excerpt for pages which have custom fields?
The excerpt is build from what is in the body of the document. What you could do is implement a PostItemProcessingPipeline processor to add the desired fields in the body, that is called 'BinaryData' on the CoveoItem you receive as a parameter.
You can learn more about this pipeline here : https://developers.coveo.com/display/public/SC201412/Using+the+Coveo+Pipelines
And see an example right there : https://developers.coveo.com/display/public/SC201412/Indexing+Documents+with+Custom+Pipeline+Processor