We have both Solr and Coveo Indexes for different purposes.
We apply an optimization technique to indexing that I call Escape Validation. It's designed to prevent indexation from indexing content redundantly. We apply this technique across many controller actions and service methods.
For instance, an Article is getting shown in couple of pages and should get indexed once as a detail page; but be prevented from being re-indexed in another page. Here is the code that we currently use to teach Coveo Indexation to escape that use case:
HttpContext.Current.Request.UserAgent.Contains("Coveo Sitecore Search Provider"))
{
return null;
}
Similarly, how can I teach Solr the same way as Coveo?