@@ -460,13 +460,13 @@ class FilesExtractor extends ProcessorPluginBase implements PluginFormInterface
'#description'=>$this->t('The number of files to index per file field.<br />The order of indexation is the weight in the widget.<br /> 0 for no restriction.'),
];
$form['number_first_bytes']=[
'#type'=>'number',
'#title'=>$this->t('Number of first N bytes to index in the extracted string'),
'#type'=>'textfield',
'#title'=>$this->t('Limit size of the extracted string before indexing.'),
'#description'=>$this->t('The number first bytes to index in the extracted string.<br /> 0 to index the full extracted content without bytes limitation.'),
'#description'=>$this->t('Enter a value like "1000", "10 KB", "10 MB" or "10 GB" in order to restrict the size of the content after extraction.<br /> 0 to index the full extracted content without bytes limitation.'),
];
$form['max_filesize']=[
'#type'=>'textfield',
...
...
@@ -496,6 +496,28 @@ class FilesExtractor extends ProcessorPluginBase implements PluginFormInterface
$form_state->setErrorByName('number_first_bytes',$this->t('The size limit option must contain a valid value. You may either enter "0" (for no restriction) or a string like "1000", "10 KB, "10 MB" or "10 GB".'));