I have views for solr search result and I have highlight processor enabled. There seems to be cache issue effecting search result. Search results are rendered array of entities. For example: If I search 'content'. I see my result highlighting word 'content' correctly but when I search for result 'extraction', in the page with both words 'content' and 'extraction', it highlights 'content'. I used
\Drupal::service('page_cache_kill_switch')->trigger();
in views pre_render but didn't work as expected. Views advanced setting already has caching set to none.
Can anyone help me disabling cache for this particular view?
Thank you.