Commit 1e91f96e authored by Brandon Bergren's avatar Brandon Bergren Committed by Ismaeil Abouljamal
Browse files

Issue #2757973 by bdragon, izus: Add hook to alter indexability.

parent 65448287
Loading
Loading
Loading
Loading
+1 −1
Changes for contrib/search_api_attachments_commerce_product_reference/includes/callback_attachments_commerce_product_reference_settings.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class SearchApiAttachmentsCommerceProductReferenceAlterSettings extends SearchAp
                      $files = array_slice($files, 0, $this->options['number_indexed']);
                    }
                    foreach ($files as $file) {
                      if ($this->isFileIndexable($file)) {
                      if ($this->isFileIndexable($file, $item, $product_reference_field['field_name'])) {
                        $attachments = 'attachments_' . $file_field['field_name'];
                        if (isset($item->{$attachments})) {
                          $item->{$attachments} .= ' ' . $this->getFileContent($file);
+1 −1
Changes for contrib/search_api_attachments_entityreference/includes/callback_attachments_entityreference_settings.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class SearchApiAttachmentsEntityreferenceAlterSettings extends SearchApiAttachme
                      $files = array_slice($files, 0, $this->options['number_indexed']);
                    }
                    foreach ($files as $file) {
                      if ($this->isFileIndexable($file)) {
                      if ($this->isFileIndexable($file, $item, $entityreference_field['field_name'])) {
                        $attachments = 'attachments_' . $file_field['field_name'];
                        if (isset($item->{$attachments})) {
                          $item->{$attachments} .= ' ' . $this->getFileContent($file);
+1 −1
Changes for contrib/search_api_attachments_field_collections/includes/callback_attachments_field_collections_settings.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class SearchApiAttachmentsFieldCollectionsAlterSettings extends SearchApiAttachm
                        $files = array_slice($files, 0, $this->options['number_indexed']);
                      }
                      foreach ($files as $file) {
                        if ($this->isFileIndexable($file)) {
                        if ($this->isFileIndexable($file, $item, $field_collection_name)) {
                          $attachments = 'attachments_' . $file_field;
                          if (isset($item->{$attachments})) {
                            $item->{$attachments} .= ' ' . $this->getFileContent($file);
+1 −1
Changes for contrib/search_api_attachments_multifield/includes/callback_attachments_multifield_settings.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ class SearchApiAttachmentsMultifieldAlterSettings extends SearchApiAttachmentsAl
                        $files = array_slice($files, 0, $this->options['number_indexed']);
                      }
                      foreach ($files as $file) {
                        if ($this->isFileIndexable($file)) {
                        if ($this->isFileIndexable($file, $item, $multifield)) {
                          $attachments = 'attachments_' . $file_field;
                          if (isset($item->{$attachments})) {
                            $item->{$attachments} .= ' ' . $this->getFileContent($file);
+1 −1
Changes for contrib/search_api_attachments_references/includes/callback_attachments_references_settings.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class SearchApiAttachmentsReferencesAlterSettings extends SearchApiAttachmentsAl
                      $files = array_slice($files, 0, $this->options['number_indexed']);
                    }
                    foreach ($files as $file) {
                      if ($this->isFileIndexable($file)) {
                      if ($this->isFileIndexable($file, $item, $reference_field['field_name'])) {
                        $attachments = 'attachments_' . $file_field['field_name'];
                        if (isset($item->{$attachments})) {
                          $item->{$attachments} .= ' ' . $this->getFileContent($file);
Loading