Index: src/Elastic/BackReferenceProcessor.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/Elastic/BackReferenceProcessor.php	(revision 0591ad1ac7714d670bca168d1604e1dc408a4afc)
+++ src/Elastic/BackReferenceProcessor.php	(date 1513176536000)
@@ -8,6 +8,7 @@
 
 namespace Drupal\elastic_search\Elastic;
 
+use Drupal\Component\Plugin\Exception\PluginNotFoundException;
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
 use Drupal\Core\Entity\EntityFieldManager;
 use Drupal\Core\Entity\EntityTypeManager;
@@ -121,12 +122,21 @@
 
   public function getReferencingEntities(FieldConfig $field, $target_id): array {
     $cid = $field->getTargetEntityTypeId() . self::CID_SEPARATOR . $field->getName() . self::CID_SEPARATOR . $target_id;
+
+
+
     if (!isset($this->backReferenceEntityIds[$cid])) {
+
       /** @var \Drupal\Core\Entity\Query\QueryInterface $query */
       $query = $this->entityQuery->get($field->getTargetEntityTypeId(), 'AND')
                                  ->condition($field->getName(), $target_id)
-                                 ->condition('status', 1)
                                  ->addTag('node_access');
+
+      // Check if Field Type is publishable.
+      if ($statusField = $this->getStatusFieldFromFieldType($field)) {
+        $query->condition($statusField, 1);
+      }
+
       $this->backReferenceEntityIds[$cid] = $query->execute();
     }
     return $this->backReferenceEntityIds[$cid];
@@ -198,4 +208,21 @@
            isset($field_handler['target_bundles'][$entity_bundle_id]);
   }
 
+  /**
+   * Check if Field Type is publishable.
+   *
+   * @param \Drupal\field\Entity\FieldConfig $field
+   *   The field definition from which we derive query conditions.
+   *
+   * @return bool|string
+   */
+  public function getStatusFieldFromFieldType(FieldConfig $field) {
+    try {
+      $entityType = $this->entityTypeManager->getDefinition($field->getTargetEntityTypeId());
+      return $entityType->getKey('published');
+    } catch (PluginNotFoundException $e) {
+      return FALSE;
+    }
+  }
+
 }
\ No newline at end of file
