Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

Important

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)

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

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.

AddExcludedField
<__Created>{25BED78C-4957-4165-998A-CA1B52F67497}</__Created>
<__DefaultWorkflow>{CA9B9F52-4FB0-4F87-A79F-24DEA62CDA65}</__DefaultWorkflow>
<__Lock>{001DD393-96C5-490B-924A-B0F25CD9EFD8}</__Lock>
<__LongDescription>{577F1689-7DE4-4AD2-A15F-7FDC1759285F}</__LongDescription>
<__Originator>{F6D8A61C-2F84-4401-BD24-52D2068172BC}</__Originator>
<__Owner>{52807595-0F8F-4B20-8D2A-CB71D28C6103}</__Owner>
<__ReadOnly>{9C6106EA-7A5A-48E2-8CAD-F0F693B1E2D4}</__ReadOnly>
<__Renderings>{F1A1FE9E-A60C-4DDB-A3A0-BB5B29FE732E}</__Renderings>
<__Revision>{8CDC337E-A112-42FB-BBB4-4143751E123F}</__Revision>
<__Security>{DEC8D2D5-E3CF-48B6-A653-8E69E2716641}</__Security>
<__ShortDescription>{9541E67D-CE8C-4225-803D-33F7F29F09EF}</__ShortDescription>
<__SortOrder>{BA3F86A2-4A1C-4D78-B63D-91C2779C1B5E}</__SortOrder>
<__Source>{1B86697D-60CA-4D80-83FB-7555A2E6CE1C}</__Source>
<__SourceItem>{19B597D3-2EDD-4AE2-AEFE-4A94C7F10E31}</__SourceItem>
<__Updated>{D9CF14B1-FA16-4BA6-9288-E8A174D4D522}</__Updated>
<__UpdatedBy>{BADD9CF9-53E0-4D0C-BCC0-2D784C282F6A}</__UpdatedBy>
<__ValidFrom>{C8F93AFE-BFD4-4E8F-9C61-152559854661}</__ValidFrom>
<__Workflow>{A4F985D9-98B3-4B52-AAAF-4344F6E747C6}</__Workflow>
<ArchiveDate>{56C15C6D-FD5A-40CA-BB37-64CEEC6A9BD5}</ArchiveDate>
<ArchiveVersionDate>{1D99005E-65CA-45CA-9D9A-FD7016E23F1E}</ArchiveVersionDate>
<Boost>{93D1B217-B8F4-462E-BABF-68298C9CE667}</Boost>
<BucketParentReference>{9DAFCA1D-D618-4616-86B8-A8ACD6B28A63}</BucketParentReference>
<Cacheable>{3D08DB46-2267-41B0-BC52-BE69FD618633}</Cacheable>
<ContextMenu>{D3AE7222-425D-4B77-95D8-EE33AC2B6730}</ContextMenu>
<Controller>{4C9312A5-2E4E-42F8-AB6F-B8DB8B82BF22}</Controller>
<ControllerAction>{9FB734CC-8952-4072-A2D4-40F890E16F56}</ControllerAction>
<DefaultBucketQuery>{AC51462C-8A8D-493B-9492-34D1F26F20F1}</DefaultBucketQuery>
<DefaultView>{3607F9C7-DDA3-43C3-9720-39A7A5B3A4C3}</DefaultView>
<Editor>{D85DB4EC-FF89-4F9C-9E7C-A9E0654797FC}</Editor>
<Editors>{A0CB3965-8884-4C7A-8815-B6B2E5CED162}</Editors>
<EnabledViews>{F2DB8BA1-E477-41F5-8EF5-22EEFA8D2F6E}</EnabledViews>
<Facets>{21F74F6E-42D4-42A2-A4B4-4CEFBCFBD2BB}</Facets>
<HelpLink>{56776EDF-261C-4ABC-9FE7-70C618795239}</HelpLink>
<HideVersion>{B8F42732-9CB8-478D-AE95-07E25345FB0F}</HideVersion>
<Icon>{06D5295C-ED2F-4A54-9BF2-26228D113318}</Icon>
<Masters>{1172F251-DAD4-4EFB-A329-0C63500E4F1E}</Masters>
<NeverPublish>{9135200A-5626-4DD8-AB9D-D665B8C11748}</NeverPublish>
<PersistentFilter>{C7815F60-96E1-40CB-BB06-B5F833F73B61}</PersistentFilter>
<Preview>{41C6CC0E-389F-4D51-9990-FE35417B6666}</Preview>
<Publish>{86FE4F77-4D9A-4EC3-9ED9-263D03BD1965}</Publish>
<ReminderDate>{ABE5D54C-59D7-41E6-8D3F-C1A3E4EC9B9E}</ReminderDate>
<ReminderText>{BB6C8540-118E-4C49-9157-830576D7345A}</ReminderText>
<Renderers>{B03569B1-1534-43F2-8C83-BD064B7D782C}</Renderers>
<Ribbon>{0C894AAB-962B-4A84-B923-CB24B05E60D2}</Ribbon>
<Skin>{079AFCFE-8ACA-4863-BDA7-07893541E2F5}</Skin>
<Style>{A791F095-2521-4B4D-BEF9-21DDA221F608}</Style>
<SubItemSorting>{6FD695E7-7F6D-4CA5-8B49-A829E5950AE9}</SubItemSorting>
<SuppressedValidationRules>{F47C0D78-61F9-479C-96DF-1159727D32C6}</SuppressedValidationRules>
<UnPublish>{7EAD6FD6-6CF1-4ACA-AC6B-B200E7BAFE88}</UnPublish>
<UserAgent>{4E678FC0-8D35-4AB7-BB49-156F33C8B955}</UserAgent>
<ValidTo>{4C346442-E859-4EFD-89B2-44AEDF467D21}</ValidTo>
<VaryByData>{8B6D532B-6128-4486-A044-CA06D90948BA}</VaryByData>
<VaryByDevice>{C98CF969-BA71-42DA-833D-B3FC1368BA27}</VaryByDevice>
<VaryByLogin>{8D9232B0-613F-440B-A2FA-DCDD80FBD33E}</VaryByLogin>
<VaryByParam>{3AD2506A-DC39-4B1E-959F-9D524ADDBF50}</VaryByParam>
<VaryByQueryString>{1084D3D2-0457-456A-ABBC-EB4CC0966072}</VaryByQueryString>
<VaryByUser>{0E54A8DC-72AD-4372-A7C7-BB4773FAD44D}</VaryByUser>
<VaryByIndex>{F3E7E552-D7C8-469B-A150-69E4E14AB35C}</VaryByIndex>
  • No labels