How to change highlight snippets size

Hi. I have big fields for search. And i want to change snippet size. Most closer example is solr params like:

        'hl.fl': 'content headline',
        'hl.snippets': 3,
        'hl.simple.pre': '=====',
        'hl.simple.post': '=====',

So it will display like 2-3 sentences with target word or phrase. Can i do the same with atlas? As currently it returns almost all text from content field.

This is my query:

{
          $search: {
            index: 'default',
            text: {
              query: getFilesDto.fullText,
              path: 'content',
            },
            highlight: {
              path: 'content',
            },
          },
        }

Hi there, can you provide a sample document and provide the query that is supplied to getFilesDto.fullText? The maxNumPassages option may be what you are looking for. In this example, if you change maxNumPassages to get more than 1 “passage” or “snippet” to be returned in the highlights.