diff --git a/config/optional/views.view.autocompletion_callbacks_nodes.yml b/config/optional/views.view.autocompletion_callbacks_nodes.yml
index 31262b6..a77d89f 100644
--- a/config/optional/views.view.autocompletion_callbacks_nodes.yml
+++ b/config/optional/views.view.autocompletion_callbacks_nodes.yml
@@ -6,7 +6,7 @@ dependencies:
     - search_autocomplete
     - user
 id: autocompletion_callbacks_nodes
-label: 'Autocompletion Callbacks Nodes'
+label: 'Nodes Autocompletion Callbacks'
 module: views
 description: 'This vew is used to store default nodes autocompletion callbacks for Search Autocomplete module.'
 tag: ''
diff --git a/config/optional/views.view.autocompletion_callbacks_users.yml b/config/optional/views.view.autocompletion_callbacks_users.yml
index 5ad6cf6..0bea783 100644
--- a/config/optional/views.view.autocompletion_callbacks_users.yml
+++ b/config/optional/views.view.autocompletion_callbacks_users.yml
@@ -8,7 +8,7 @@ dependencies:
     - search_autocomplete
     - user
 id: autocompletion_callbacks_users
-label: 'Autocompletion Callbacks Users'
+label: 'Users Autocompletion Callbacks'
 module: views
 description: 'This vew is used to store default users autocompletion callbacks for Search Autocomplete module.'
 tag: ''
diff --git a/config/optional/views.view.autocompletion_callbacks_words.yml b/config/optional/views.view.autocompletion_callbacks_words.yml
index a786bef..baab9f7 100644
--- a/config/optional/views.view.autocompletion_callbacks_words.yml
+++ b/config/optional/views.view.autocompletion_callbacks_words.yml
@@ -7,7 +7,7 @@ dependencies:
     - search_autocomplete
     - user
 id: autocompletion_callbacks_words
-label: 'Autocompletion Callbacks Words'
+label: 'Words Autocompletion Callbacks'
 module: views
 description: 'This vew is used to store default nodes autocompletion callbacks for Search Autocomplete module.'
 tag: ''
@@ -509,7 +509,40 @@ display:
           entity_type: node
           entity_field: uid
           plugin_id: standard
-      arguments: {  }
+      arguments:
+        keys:
+          id: keys
+          table: node_search_index
+          field: keys
+          relationship: none
+          group_type: group
+          admin_label: ''
+          default_action: ignore
+          exception:
+            value: all
+            title_enable: false
+            title: All
+          title_enable: false
+          title: ''
+          default_argument_type: fixed
+          default_argument_options:
+            argument: ''
+          default_argument_skip_url: false
+          summary_options:
+            base_path: ''
+            count: true
+            items_per_page: 25
+            override: false
+          summary:
+            sort_order: asc
+            number_of_records: 0
+            format: default_summary
+          specify_validation: false
+          validate:
+            type: none
+            fail: 'not found'
+          validate_options: {  }
+          plugin_id: search
       display_extenders: {  }
     cache_metadata:
       contexts:
@@ -518,6 +551,7 @@ display:
         - url
         - 'url.query_args.pagers:0'
         - 'user.node_grants:view'
+        - user.permissions
       cacheable: false
   words_autocompletion_callback:
     display_plugin: autocompletion_callback
@@ -542,4 +576,5 @@ display:
         - 'languages:language_interface'
         - url
         - 'user.node_grants:view'
+        - user.permissions
       cacheable: false
diff --git a/src/Plugin/views/display/AutocompletionCallback.php b/src/Plugin/views/display/AutocompletionCallback.php
index 66c978a..2601b8d 100644
--- a/src/Plugin/views/display/AutocompletionCallback.php
+++ b/src/Plugin/views/display/AutocompletionCallback.php
@@ -8,9 +8,13 @@
 
 namespace Drupal\search_autocomplete\Plugin\views\display;
 
+use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\Cache\CacheableResponse;
 use Drupal\Core\State\StateInterface;
 use Drupal\Core\Routing\RouteProviderInterface;
 use Drupal\Core\ContentNegotiation;
+use Drupal\views\Plugin\views\display\ResponseDisplayPluginInterface;
 use Drupal\views\ViewExecutable;
 use Drupal\views\Plugin\views\display\PathPluginBase;
 use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -32,7 +36,7 @@ use Symfony\Component\Routing\RouteCollection;
  *   autocompletion_callback_display = TRUE
  * )
  */
-class AutocompletionCallback extends PathPluginBase {
+class AutocompletionCallback extends PathPluginBase implements ResponseDisplayPluginInterface {
 
   /**
    * Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::$usesAJAX.
@@ -95,6 +99,26 @@ class AutocompletionCallback extends PathPluginBase {
   /**
    * {@inheritdoc}
    */
+  public static function buildResponse($view_id, $display_id, array $args = []) {
+    $build = static::buildBasicRenderable($view_id, $display_id, $args);
+
+    // @var \Drupal\Core\Render\RendererInterface $renderer
+    $renderer = \Drupal::service('renderer');
+
+    $output = $renderer->renderRoot($build);
+
+    $response = new CacheableResponse($output, 200);
+    $cache_metadata = CacheableMetadata::createFromRenderArray($build);
+    $response->addCacheableDependency($cache_metadata);
+
+    $response->headers->set('Content-type', 'application/json');
+
+    return $response;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
     return new static(
       $configuration,
@@ -118,7 +142,6 @@ class AutocompletionCallback extends PathPluginBase {
     if ($request_content_type != 'html') {
       $this->setContentType($request_content_type);
     }
-
     $this->setMimeType($this->view->getRequest()->getMimeType($this->contentType));
   }
 
@@ -227,8 +250,7 @@ class AutocompletionCallback extends PathPluginBase {
   public function execute() {
     parent::execute();
 
-    $output = $this->view->render();
-    return new Response(drupal_render_root($output), 200, array('Content-type' => $this->getMimeType()));
+    return $this->view->render();
   }
 
   /**
@@ -238,6 +260,9 @@ class AutocompletionCallback extends PathPluginBase {
     $build = array();
     $build['#markup'] = $this->view->style_plugin->render();
 
+    $this->view->element['#content_type'] = $this->getMimeType();
+    $this->view->element['#cache_properties'][] = '#content_type';
+
     // Wrap the output in a pre tag if this is for a live preview.
     // Also little trick added to preview a formatted json for easier debug.
     if (!empty($this->view->live_preview)) {
@@ -246,6 +271,21 @@ class AutocompletionCallback extends PathPluginBase {
       $build['#markup'] = json_encode($dump, JSON_PRETTY_PRINT);
       $build['#suffix'] = '</pre>';
     }
+    elseif ($this->view->getRequest()->getFormat($this->view->element['#content_type']) !== 'html') {
+      // This display plugin is primarily for returning non-HTML formats.
+      // However, we still invoke the renderer to collect cacheability metadata.
+      // Because the renderer is designed for HTML rendering, it filters
+      // #markup for XSS unless it is already known to be safe, but that filter
+      // only works for HTML. Therefore, we mark the contents as safe to bypass
+      // the filter. So long as we are returning this in a non-HTML response
+      // (checked above), this is safe, because an XSS attack only works when
+      // executed by an HTML agent.
+      // @todo Decide how to support non-HTML in the render API in
+      //   https://www.drupal.org/node/2501313.
+      $build['#markup'] = SafeMarkup::set($build['#markup']);
+    }
+
+    parent::applyDisplayCachablityMetadata($build);
     return $build;
   }
 
diff --git a/src/Plugin/views/row/CallbackFieldRow.php b/src/Plugin/views/row/CallbackFieldRow.php
index 34b9a7b..0e5697b 100644
--- a/src/Plugin/views/row/CallbackFieldRow.php
+++ b/src/Plugin/views/row/CallbackFieldRow.php
@@ -49,6 +49,13 @@ class CallbackFieldRow extends RowPluginBase {
    */
   protected $types = array();
 
+  /**
+   * Stores an array of options to determine if the raw field output is used.
+   *
+   * @var array
+   */
+  protected $rawOutputOptions = array();
+
   protected $rowOptions = array();
 
   /**
@@ -62,8 +69,9 @@ class CallbackFieldRow extends RowPluginBase {
       // Prepare a trimmed version of replacement aliases.
       $aliases = static::extractFromOptionsArray('alias', $options);
       $this->replacementAliases = array_filter(array_map('trim', $aliases));
+      // Prepare an array of raw output field options.
+      $this->rawOutputOptions = static::extractFromOptionsArray('raw_output', $options);
     }
-
     $this->types = NodeType::loadMultiple();
   }
 
@@ -151,8 +159,18 @@ class CallbackFieldRow extends RowPluginBase {
     // Render all fields.
     foreach ($this->view->field as $id => $field) {
 
-      // Render the value.
-      $value = $field->advancedRender($row);
+      // If this is not unknown and the raw output option has been set, just get
+      // the raw value.
+      if (($field->field_alias != 'unknown') && !empty($this->rawOutputOptions[$id])) {
+        $value = $field->sanitizeValue($field->getValue($row), 'xss_admin');
+      }
+      // Otherwise, pass this through the field advancedRender() method.
+      else {
+        if (!isset($this->view->row_index) || $this->view->row_index == null) {
+          $this->view->row_index = $row->row_index;
+        }
+        $value = $field->advancedRender($row);
+      }
 
       // Convert content type machine names to human names.
       if ($id == 'type' && isset($this->types[$value])) {
diff --git a/src/Plugin/views/style/CallbackSerializer.php b/src/Plugin/views/style/CallbackSerializer.php
index 0fd343e..4a4f809 100644
--- a/src/Plugin/views/style/CallbackSerializer.php
+++ b/src/Plugin/views/style/CallbackSerializer.php
@@ -138,6 +138,9 @@ class CallbackSerializer extends StylePluginBase {
       $this->view->rowPlugin->setRowOptions($this->options);
 
       // Render the row according to our custom needs.
+      if (!isset($row->row_index) || $row->row_index == NULL) {
+        $row->row_index = $index;
+      }
       $rendered_row = $this->view->rowPlugin->render($row);
 
       // Case when it takes grouping.
diff --git a/src/Tests/Views/CallbackViewsTest.php b/src/Tests/Views/CallbackViewsTest.php
index 6f4f066..72bfe77 100644
--- a/src/Tests/Views/CallbackViewsTest.php
+++ b/src/Tests/Views/CallbackViewsTest.php
@@ -29,7 +29,7 @@ class CallbackViewsTest extends ViewTestBase {
    *
    * @var array
    */
-  public static $modules = array('node', 'views_ui', 'search_autocomplete');
+  public static $modules = array('search', 'image', 'user', 'node', 'views_ui', 'search_autocomplete');
 
   /**
    * The admin user
@@ -77,15 +77,15 @@ class CallbackViewsTest extends ViewTestBase {
     // Find the views in the view list page.
     $this->drupalGet("admin/structure/views");
 
-    // Nodes callback view
+    // Nodes callback view.
     $this->assertRaw(t('Nodes Autocompletion Callbacks'));
     $this->assertRaw(t('autocompletion_callbacks_nodes'));
 
-    // Users callback view
+    // Users callback view.
     $this->assertRaw(t('Users Autocompletion Callbacks'));
     $this->assertRaw(t('autocompletion_callbacks_users'));
 
-    // Words callback view
+    // Words callback view.
     $this->assertRaw(t('Words Autocompletion Callbacks'));
     $this->assertRaw(t('autocompletion_callbacks_words'));
   }
