Problem/Motivation
When defining a custom property in code using type solr_string_storage it does not show in the UI.

Steps to reproduce
Create a custom plugin based on \Drupal\search_api\Processor\ProcessorPluginBase
if (empty($datasource)) {
$definition = [
'label' => $this->t('Stored entity fields'),
'description' => $this->t('Stores the pre-processed fields of an entity.'),
'type' => 'solr_string_storage',
'processor_id' => $this->getPluginId(),
'is_list' => FALSE,
];
// Using an underscore at the beginning to avoid clash with custom
// fields added by the providers.
$properties['_stored_entity_fields'] = new ProcessorProperty($definition);
Proposed resolution
Show the field in the UI.
Remaining tasks
Show the field in the UI.
Comments
Comment #2
drunken monkeyIf it’s a processor-defined property, why not just change it to a type that is already supported – like
string,search_api_textorsearch_api_html?Comment #3
attiks commentedThat will probably work as well, was only expecting to have all fields show in the UI. The field data is set in code and does not have to be indexed, is only used to avoid entity loads after getting solr results back.
Feel free to close this
Comment #4
drunken monkey