> For the complete documentation index, see [llms.txt](https://solr-express.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://solr-express.gitbook.io/docs/5.2.0/tutorials/advanced-features/result-interceptors.md).

# Result interceptors

## Feature

Intercept results of SOLR before parse in POCO

## How to

1. Create a class that implements **IResultInterceptor**

```csharp
    public class MyInterceptor : IResultInterceptor
    {
        public void Execute(string requestHandler, ref string json) // method from interface
        {
            // some code
        }
    }
```

1. Add instance using method **Add** in **DocumentCollection<>**

```csharp
    var myInterceptor = new MyInterceptor();

    DocumentSearch<TechProduct> documentSearch; // From your DI provider
    documentSearch
        .Add(myInterceptor)
        // ...  Other settings
        .Execute();
```
