Closed skartknet closed 2 years ago
Hi,
The datasources will be created when either the index is rebuilt or lazily if you have already installed ExamineX and then install the blob media package and then content/media is saved. Unfortunately the "content" field must be configured correctly to make this work and it doesn't seem that you can change the field that blob content gets indexed too. I have tried many different avenues to make that work but could never succeed. ExamineX blob media package will try to change any existing "content" field to be compatible with the blob datasource since it must be configured as a SearchFieldDataType.String
and not a string collection (which is typically the default).
I would advise that the easiest thing to do is avoid having a field named "content" in your Umbraco property types and leave this as a reserved field name for Azure Search's blob media.
The 2nd error you are getting: Data source does not contain column '__NodeId', which is required because it maps to the document key field 'x__NodeId' in the index 'test-external'. Ensure that the '__NodeId' column is present in the data source, or add a field mapping that maps one of the existing column names to 'x__NodeId'.
is because you have blob items in your data store that don't have the metadata fields __NodeId assigned to them. ExamineX will automatically add these when media is saved but if there's existing media that don't have these, when the indexer is enabled you will encounter this issue. Unfortunately there is no easy way around this apart from either starting from scratch with your blob container or re-saving all of your media.
I have just noticed however, that the blob data source configured by ExamineX isn't configuring it to just look in the media
folder (which it should) and instead it is querying all of the files in the full container. You can fix this in the portal by adding the media
path:
I'll update the codebase to ensure this is done too based on the path configured (default is media in umbraco)
awesome, thanks.
Examine Version: 4.0.0-beta 1 Umbraco Version: 10.0.0.1
Description It looks like the data sources are not created until a new image is uploaded to the site. At this point I got an error on the logs.
If I upload a new image after this, I get a new error, but not the previous one anymore: