Gravatar for

Question by pblrok, Sep 20, 2017 2:34 PM

HtmlContentInBodyWithRequestsProcessor and items without layout

I use HtmlContentInBodyWithRequestsProcessor but i need to have some items in index that don't have layout. Is it possible make some configuration for indexing special items without layout?

1 Reply
Gravatar for

Answer by François Lachance-Guillemette, Sep 25, 2017 3:19 PM

There are other processors that you can use, in the `coveoPostItemProcessingPipeline`.

The first processor that can resolve a document's data will set it, in your case, this is the `HtmlContentInBodyWithRequestsProcessor`.

If you add other processors in the pipeline and the `HtmlContentInBodyWithRequestsProcessor` fails, the others will be used.

You could add the BasicHtmlContentInBodyProcessor which adds some fields directly on the document and is probably good enough for your use case.

You could also code your own and directly put the content that you need.

Ask a question