Ola Hallengren's index rebuiuld script - how to exclude more than one object? I'm using Ola's script to rebuild indexes. But after problems with script blocking particular objects that are used by SOLR, I wanted to exclude them and run script for them in another schedule. So, in main job I've set parameter @indexes like this:

@Indexes = 'ALL_INDEXES, -database.schema.object_1, -database.schema.object_2, -database.schema.object_3'


Is this a correct settings for this parameter? Can I add here multiple objects? Also, in second job I've set only this objects to be rebuild (without ALL_INDEXES).
Yes that looks like the correct syntax (except you have two '--' for your last index name? :-) )

Also, when you are writing your script for these indexes only, you do not need the '-' before the index name.

more info here: https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html