Gravatar for

Question by silin, Jun 13, 2017 8:58 PM

Removing / merging query results using Coveo Search API pipeline

I need to remove / merge some items in the query result. I hoped to use pipeline on the Coveo Search API side for that:

Coveo.onPostprocessResults(function(results) { ... });

However, looks like this handler exposes and allows to modify only results for a current page of the result set; and does not provide access to over all result set.

Is there a handler to modify overall set of results?

1 Reply
Gravatar for

Answer by Martin Laporte, Jun 13, 2017 11:53 PM

The query pipeline only has access to the results for the current page, as you noticed. Loading results off the index is expensive, so we only do it for results that are really needed once the boolean matching / ranking part of the query execution is over.

Gravatar for

Comment by silin, Jun 14, 2017 2:51 PM

@Martin Laporte, thank you for the reply.

I posted more details about what I am trying to achieved in another question:

Ask a question