Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

If you have chosen to run DAM For Sitecore with Lucene search engine, you can skip this topic.

Info
titleImportant

This applies only to Sitecore 9+. For earlier versions, see link

After installing DAM For Sitecore, Solr has to be configured to accommodate custom DAM For Sitecore indexes: 

  • dfs_assets_master_index
  • dfs_assets_web_index

This is configured doing the following

1 Create physical cores

To create the physical Solr cores, do the following:

  1. open file explorer on the server on which Solr is installed
  2. navigate to path <solr install dir>\solr-6.6.1-0\apache-solr\server\solr\configsets
  3. copy folder basic_configs into folder <solr install dir>\solr-6.6.1-0\apache-solr\server\solr
  4. rename to dfs_assets_master_index
  5. Repeat 1-4 for dfs_assets_web_index

2 Create cores in Solr UI

To create the cores in Solr UI, do the following:

  1. Open solr UI (e.g. https://127.0.0.1:8983/solr/)
  2. Go to Core Admin
  3. Add both cores (See screenshot below)

Image Removed

3 Populate cores

To populate Solr cores, do the following:

  1. Log into Sitecore
  2. Navigate to control panel
  3. Click Populate Solr Managed Schema
  4. Select both dfs indexes and press populate

4 Add DAM For Sitecore specific dynamic fields

To add DAM For Sitecore specifc dynamic fields, do the following:

  1. Open solr UI (e.g. https://127.0.0.1:8983/solr/)
  2. Select cores from core selector
  3. Under schema, add a new dynamic field with name as "*_lc" and field type lowercase
  4. Do this for both indexes

Image Removed

Info

Please be aware that if you populate the managed schema after adding the dynamic field, then they are overwritten.

5 Check unqiueKey in managed schema

Sitecore 9.0.0 populates the managed schema with a wrong uniqueKey, so please double check that the <uniqueKey> tag does indeed contain the correct uniqueKey (it should be _uniqueid).

Locate the managed-schema file under the 2 cores dfs_assets_master_index and dfs_assets_web_index you created in section 1. Check the tag <uniqueKey> the value should be _uniqueid.

Then restart the solr service.

See Sitecore documentation for for further information.

6 Add excluded fields

Open \App_Config\Include\damforsitecore\DFS.Assets.Solr.IndexConfiguration.config and locate the section <exclude hint="list:AddExcludedField">. Add these field to the section. Do not delete the existing fields.

...

languagexml
titleAddExcludedField

...


Choose the search provider that is relevant for you Sitecore installation: