The File contents are not appearing under the General section .
After configuring my search index, I add the File attachments processor, but the File contents field does not show up in the field selection screen as an option:Please refer the screenshots attached
I am using Search API alpha15 and Search API Attachments alpha4.
But below the File section in fields I could see the Filename,File Type,Filesize etc.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sajiniantony created an issue. See original summary.

webiator GmbH’s picture

I have the same problem :/ Have not found a fix so far

ekes’s picture

It won't appear till it's on. Related the note about the change of how configuration works on #2773343: FilesExtrator (plugin for @SearchAPIProcessor) configuration form is not displayed.

I'll look further about changing where the configuration is, but as an immediate fix, change the @annotation in src/Plugin/search_api/processor/FilesExtrator.php to add 'locked = true'

diff --git a/src/Plugin/search_api/processor/FilesExtrator.php b/src/Plugin/search_api/processor/FilesExtrator.php
index fff09cd..958aa58 100644
--- a/src/Plugin/search_api/processor/FilesExtrator.php
+++ b/src/Plugin/search_api/processor/FilesExtrator.php
@@ -29,6 +29,7 @@ use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface;
  *   stages = {
  *     "add_properties" = 0,
  *   }
+ *   locked = true,
  * )
  */
 class FilesExtrator extends ProcessorPluginBase {
simon_h’s picture

I have tried adding "locked = true" and the problems are gone. I had errors on cron.
But when I test my search, I get a unexpected error referring to the adjustment (locked=true).

Any more news about this?

izus’s picture

does this still accurate with the fix of issue mentionned in #3 ?
Thanks all

izus’s picture

Version: 8.x-1.0-alpha4 » 8.x-1.x-dev
Status: Active » Closed (cannot reproduce)

hi,
with the last dev version, this is no more accurate.
please feel free to reopen if needed