You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a dataset schema that contains more than two levels of nested objects, adding a field to the index from deeper in the tree will produce an error.
Expected Behavior
We should be able to add a field from anywhere in the dataset schema to the DKAN search index without issue.
Steps To Reproduce
Build a site and replace the dataset schema with this file
Go into the search API index configuration, and add the field "dctconformsto" to the index
Re-index
You will see an error that includes
Error: Object of class stdClass could not be converted to string in Drupal\search_api\Plugin\search_api\data_type\StringDataType->getValue() (line 23 of /var/www/html/docroot/modules/contrib/sea
rch_api/src/Plugin/search_api/data_type/StringDataType.php).
Environment
- OS:
- Node:
- npm:
Relevant log output
No response
Anything else?
See the discussion in #4180 where this was discovered. We need a more recursive kind of logic in Drupal\metastore_search\ComplexData\Dataset to allow adding fields that may be nested in objects nested in arrays nested in other objects, etc.
The text was updated successfully, but these errors were encountered:
Current Behavior
If we have a dataset schema that contains more than two levels of nested objects, adding a field to the index from deeper in the tree will produce an error.
Expected Behavior
We should be able to add a field from anywhere in the dataset schema to the DKAN search index without issue.
Steps To Reproduce
You will see an error that includes
Environment
Relevant log output
No response
Anything else?
See the discussion in #4180 where this was discovered. We need a more recursive kind of logic in
Drupal\metastore_search\ComplexData\Dataset
to allow adding fields that may be nested in objects nested in arrays nested in other objects, etc.The text was updated successfully, but these errors were encountered: