How to add a index to specific database in RavenDb 4. I see the function
new SearchableIndex().Execute(_documentStore)
;
How to specify the database, without setting the default database as part of document store initialization. I wish to pass the database name as parameter.
You set the database for the
DocumentStore
using theDatabase
property. When initializing, do it like this: