Depending on your Sitecore version, you can have both Solr and Lucene enabled at the same time. Each index configuration will define which provider is used. I have done this in v8.0+
You will need to make sure that both the
Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config files are enabled.
Then for your indexes that need to use Lucene, the config should set the type to the Lucene provider:
For any indexes that you want to store in Solr, set it to the Solr provider:
Sitecore will create the index objects in code based on the type specified, so both will work.
- You can't store the same index in both Solr and Lucene, the indexes must be unique
- If you have Lucene indexes on the CD servers, you may run into problems with getting the indexes updated. Normally only the CM server would kick off the indexing in a SOLR environment as the indexes are shared across servers. But Lucene are local, so you would have to enable the index updating on the CD servers too, this could cause a lot of needless index updates in SOLR. - if you are only using the media framework index for CM data, then it may not be an issue.
It may be better to convert the media framework to use a SOLR index. It should be possible to do this by changing the index config.