-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coveofoundation #1
base: coveo
Are you sure you want to change the base?
Changes from 10 commits
d9d1106
465386b
9a37675
26eee60
34eb73f
2c8899c
891924a
1164f81
1aff014
c353f70
4951626
e710cfd
ab87e86
193a062
5637ef5
96fbdae
d9e7f63
ed40c50
5c7c52f
e415358
a98d5ae
8d76510
da1145c
ace7488
550ca34
ca09678
f56bfde
ea211fc
0069b0e
ddcf87b
47f6f9c
95b02df
5784702
c624441
cac0b30
1a8761d
dcb01f2
405f1f9
195ad0d
504e90e
8bee9ec
6c17dab
3f453a7
dea4960
9ff6b4c
8cd2d43
84f1add
0481b72
2c85cce
49c83ed
608c192
e76cf7f
f5c6d33
4a43a9a
375dbb4
e414779
c58e3bd
9c92360
cab4530
a93ccfc
47b9adc
1b2ca52
5623eec
32c1b87
66412e7
66ca53f
1ce5f0f
c8c9eb7
9441575
b319fb8
edac1b3
2d52f70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | ||
<sitecore> | ||
<unicorn> | ||
<configurations> | ||
<!-- | ||
<configurations> | ||
<configuration name="Feature.CoveoSearch" dscription="Feature CoveoSearch" dependencies="Foundation.Serialization,Foundation.CoveoIndexing" patch:after="configuration[@name='Foundation.Serialization']"> | ||
<targetDataStore physicalRootPath="$(sourceFolder)\feature\coveosearch\serialization" type="Rainbow.Storage.SerializationFileSystemDataStore, Rainbow" useDataCache="false" singleInstance="true" /> | ||
<predicate type="Unicorn.Predicates.SerializationPresetPredicate, Unicorn" singleInstance="true"> | ||
</predicate> | ||
<predicate type="Unicorn.Roles.Predicates.EmptyPredicate, Unicorn.Roles" singleInstance="true" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. t'es certain que c'est un EmptyPredicate du namespace Unicorn.Roles qu'on a besoin? Je pensais plus au namespace Unicorn.Predicates si c'est disponible. Car on a déjà des rolePredicates plus bas. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oui, seulement lorsqu'il n'y a pas d'item a sérializer. C'est un "dummy". |
||
<roleDataStore type="Unicorn.Roles.Data.FilesystemRoleDataStore, Unicorn.Roles" physicalRootPath="$(sourceFolder)\feature\coveosearch\serialization\Feature.CoveoSearch.Roles" singleInstance="true"/> | ||
<rolePredicate type="Unicorn.Roles.RolePredicates.ConfigurationRolePredicate, Unicorn.Roles" singleInstance="true"> | ||
<include domain="modules" pattern="^Feature CoveoSearch .*$" /> | ||
</rolePredicate> | ||
</configuration> | ||
--> | ||
</configuration> | ||
</configurations> | ||
</unicorn> | ||
</sitecore> | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,15 @@ | |
<sitecore> | ||
<unicorn> | ||
<configurations> | ||
<!-- | ||
<configuration name="Foundation.CoveoIndexing" description="Foundation CoveoIndexing" dependencies="Foundation.Serialization" patch:after="configuration[@name='Foundation.Serialization']"> | ||
<targetDataStore physicalRootPath="$(sourceFolder)\foundation\indexing\serialization" type="Rainbow.Storage.SerializationFileSystemDataStore, Rainbow" useDataCache="false" singleInstance="true" /> | ||
|
||
<predicate type="Unicorn.Predicates.SerializationPresetPredicate, Unicorn" singleInstance="true"> | ||
</predicate> | ||
<roleDataStore type="Unicorn.Roles.Data.FilesystemRoleDataStore, Unicorn.Roles" physicalRootPath="$(sourceFolder)\foundation\coveoindexing\serialization\Foundation.Indexing.Roles" singleInstance="true"/> | ||
<targetDataStore physicalRootPath="$(sourceFolder)\foundation\coveoindexing\serialization" type="Rainbow.Storage.SerializationFileSystemDataStore, Rainbow" useDataCache="false" singleInstance="true" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Déplacer dans Projects/Common |
||
<predicate type="Unicorn.Roles.Predicates.EmptyPredicate, Unicorn.Roles" singleInstance="true" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Même commentaire par rapport au namespace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Meme commentaire qu'en haut There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thread done. |
||
<roleDataStore type="Unicorn.Roles.Data.FilesystemRoleDataStore, Unicorn.Roles" physicalRootPath="$(sourceFolder)\foundation\coveoindexing\serialization\Foundation.CoveoIndexing.Roles" singleInstance="true"/> | ||
<rolePredicate type="Unicorn.Roles.RolePredicates.ConfigurationRolePredicate, Unicorn.Roles" singleInstance="true"> | ||
<include domain="modules" pattern="^Foundation CoveoIndexing .*$" /> | ||
</rolePredicate> | ||
</configuration> | ||
--> | ||
</configurations> | ||
</unicorn> | ||
</sitecore> | ||
</configuration> | ||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,212 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | ||
<configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Peux-tu remettre la ligne<?xml ... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. La ligne XML n'est toujours pas là There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mm. Done for real this time I guess. |
||
xmlns:patch="http://www.sitecore.net/xmlconfig/"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Peux-tu remettre le xmlns sur la même ligne que <configuration There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ce n'est toujours pas fait. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mm.Done for real this time I guess |
||
<sitecore> | ||
<pipelines> | ||
<coveoPostItemProcessingPipeline> | ||
<processor type="Coveo.SearchProvider.Processors.HtmlContentInBodyWithRequestsProcessor, Coveo.SearchProviderBase"> | ||
<StartCommentText>BEGIN NOINDEX</StartCommentText> | ||
<EndCommentText>END NOINDEX</EndCommentText> | ||
</processor> | ||
</coveoPostItemProcessingPipeline> | ||
<coveoInboundFilterPipeline> | ||
<processor type="Sitecore.Foundation.CoveoIndexing.ExcludeVideoFiles, Sitecore.Foundation.CoveoIndexing" /> | ||
<processor type="Sitecore.Foundation.CoveoIndexing.ExcludeDesignerFiles, Sitecore.Foundation.CoveoIndexing" /> | ||
<processor type="Sitecore.Foundation.CoveoIndexing.ExcludeImageFiles, Sitecore.Foundation.CoveoIndexing" /> | ||
<!--<processor type="Sitecore.Foundation.CoveoIndexing.ExcludeItemOutsideHomeTree, Sitecore.Foundation.CoveoIndexing" />--> | ||
<processor type="Coveo.SearchProvider.CoveoInboundFilters.HasLayoutInboundFilter, Coveo.SearchProviderBase"></processor> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Configurer le processeur pour affecter seulement les items de /sitecore/content mais ne pas toucher la media library. |
||
</coveoInboundFilterPipeline> | ||
<coveoResolveItemSite> | ||
<processor type="Sitecore.Foundation.CoveoIndexing.Processors.ResolveItemSiteProcessor, Sitecore.Foundation.CoveoIndexing" patch:instead="processor[@type='Coveo.SearchProvider.Processors.ResolveItemSiteProcessor, Coveo.SearchProviderBase']"/> | ||
</coveoResolveItemSite> | ||
</pipelines> | ||
<coveo> | ||
<defaultIndexConfiguration> | ||
<fieldMap type="Coveo.SearchProvider.CoveoFieldMap, Coveo.SearchProvider"> | ||
<fieldNames hint="raw:AddFieldByFieldName"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Les fields vont aller avec les projets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. J'ai déplacé les fields dans le projet Habitat |
||
<fieldType fieldName="metakeywords" isSortable="true" isExternal="true" isMultiValue="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Déplacer dans project/Common There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. J'ai déplacé dans le project Common |
||
<fieldType fieldName="title" isFacet="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Déplacer dans project/common puisque le champ title doit être défini dans une feature quelconque. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Déplacé dans le projet Common |
||
<fieldType fieldName="mappointcategory" isFacet="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" /> | ||
</fieldNames> | ||
<externalFields hint="raw:AddExternalField"> | ||
<field fieldName="syslanguage"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Les fields externes additionels devraient être dans la config d'un module qui va les utiliser. Au niveau de la fondation, on ne sait pas encore quels fields vont être utilisés par les projets et les features. |
||
<field fieldName="sysfiletype"/> | ||
<field fieldName="date"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changer pour sysdate. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
<field fieldName="ytvideoduration" fieldTypeName="integer" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pas de fields youtube |
||
<field fieldName="ytviewcount" fieldTypeName="integer" /> | ||
<field fieldName="ytlikecount" fieldTypeName="integer" /> | ||
<field fieldName="ytdescription" /> | ||
<field fieldName="ytvideotags" /> | ||
<field fieldName="poktype" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pas de fields de pokemons. |
||
</externalFields> | ||
</fieldMap> | ||
<documentOptions> | ||
<fields hint="raw:AddComputedIndexField"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Les fields, ça devrait aller dans le projet je pense car on ne sait pas exactement ce qui va être utilisé dans les divers projets créés à partir des fondations et des features. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Déplacer les fields dans project/common There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
<field fieldName="pageicon" sourceField="image">Coveo.SearchProvider.ComputedFields.ImageUrlComputedField, Coveo.SearchProviderBase</field> | ||
<field fieldName="personicon" sourceField="picture">Coveo.SearchProvider.ComputedFields.ImageUrlComputedField, Coveo.SearchProviderBase</field> | ||
<field fieldName="metakeywords" sourceField="metaKeywords" referencedFieldName="keyword">Coveo.SearchProvider.ComputedFields.ReferencedFieldComputedField, Coveo.SearchProviderBase</field> | ||
</fields> | ||
<exclude hint="list:AddExcludedTemplate"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Certaines de ces exclusions sont pour EXM ou PXM qui n'est pas installé dans Habitat par défaut. Garder juste les exclusions qui touchent la fondation (Sitecore + WFFM). Pour les exclusions du projet Habitat, mettre ça dans le module du projet. Pour les exclusions sur PXM ou EXM, mettre ça dans le repo Sitecore.Demo.Coveo plus tard. |
||
<HtmlMessage>{ECF0A9C8-FE56-45D8-B750-6BDE3A34A532}</HtmlMessage> | ||
<SampleItem>{76036F5E-CBCE-46D1-AF0A-4143F9B557AA}</SampleItem> | ||
<LandingPage>{9917C92B-0F13-4F96-B50B-84C874E25783}</LandingPage> | ||
</exclude> | ||
<excludeField hint="list:AddExcludedField"> | ||
<__FinalRenderings>{04BF00DB-F5FB-41F7-8AB7-22408372A981}</__FinalRenderings> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pourquoi on exclue ce field déjà? |
||
</excludeField> | ||
</documentOptions> | ||
<siteName>habitat</siteName> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Le site "habitat" est défini dans project/habitat. On ne peut pas assumer qu'il va exister dans la fondation. Il faut mettre cette patch dans project/habitat There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DOne !Déplacé dans project Habitat |
||
</defaultIndexConfiguration> | ||
</coveo> | ||
<contentSearch> | ||
<configuration> | ||
<indexes hint="list:AddIndex"> | ||
<index id="Coveo_master_index_Utilities" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[1]"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Enlever les indexes utilities, finance, legal et group. Créer 2 indexs pour Habitat master et Habitat web |
||
<!-- SUBSITE Utilities Master Index --> | ||
<param desc="p_Name">$(id)</param> | ||
<configuration ref="coveo/defaultIndexConfiguration"> | ||
<pushPermissionsOnRebuild>true</pushPermissionsOnRebuild> | ||
<queryConfiguration ref="coveo/defaultIndexConfiguration/queryConfiguration"> | ||
<maximumAge>00:00:00</maximumAge> | ||
</queryConfiguration> | ||
</configuration> | ||
<locations hint="list:AddCrawler"> | ||
<crawler name="ContentCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>master</database> | ||
<root>/sitecore/content/Utilities</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
</locations> | ||
<strategies hint="list:AddStrategy"> | ||
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoSyncMaster"/> | ||
</strategies> | ||
<propertyStore ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> | ||
<enableItemLanguageFallback>false</enableItemLanguageFallback> | ||
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | ||
</index> | ||
<index id="Coveo_web_index_Utilities" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[2]"> | ||
<!--SUBSITE Utilities Web Index --> | ||
<param desc="p_Name">$(id)</param> | ||
<configuration ref="coveo/defaultIndexConfiguration" /> | ||
<locations hint="list:AddCrawler"> | ||
<crawler name="ContentCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>web</database> | ||
<root>/sitecore/content/Utilities</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
</locations> | ||
<strategies hint="list:AddStrategy"> | ||
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoOnPublishEndAsync"/> | ||
</strategies> | ||
<propertyStore ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> | ||
<enableItemLanguageFallback>false</enableItemLanguageFallback> | ||
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | ||
</index> | ||
<index id="Coveo_master_index_Legal" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[1]"> | ||
<!--SUBSITE Legal Master Index --> | ||
<param desc="p_Name">$(id)</param> | ||
<configuration ref="coveo/defaultIndexConfiguration"> | ||
<pushPermissionsOnRebuild>true</pushPermissionsOnRebuild> | ||
<queryConfiguration ref="coveo/defaultIndexConfiguration/queryConfiguration"> | ||
<maximumAge>00:00:00</maximumAge> | ||
</queryConfiguration> | ||
</configuration> | ||
<locations hint="list:AddCrawler"> | ||
<crawler name="ContentCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>master</database> | ||
<root>/sitecore/content/Legal</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
<crawler name="MediaLibraryCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>master</database> | ||
<root>/sitecore/media library/Legal/Documents</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
</locations> | ||
<strategies hint="list:AddStrategy"> | ||
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoSyncMaster"/> | ||
</strategies> | ||
<propertyStore ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> | ||
<enableItemLanguageFallback>false</enableItemLanguageFallback> | ||
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | ||
</index> | ||
<index id="Coveo_web_index_Legal" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[2]"> | ||
<!--SUBSITE Legal Web Index --> | ||
<param desc="p_Name">$(id)</param> | ||
<configuration ref="coveo/defaultIndexConfiguration" /> | ||
<locations hint="list:AddCrawler"> | ||
<crawler name="ContentCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>web</database> | ||
<root>/sitecore/content/Legal</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
<crawler name="MediaLibraryCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>web</database> | ||
<root>/sitecore/media library/Legal/Documents</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
</locations> | ||
<strategies hint="list:AddStrategy"> | ||
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoOnPublishEndAsync"/> | ||
</strategies> | ||
<propertyStore ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> | ||
<enableItemLanguageFallback>false</enableItemLanguageFallback> | ||
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | ||
</index> | ||
<index id="Coveo_master_index_Finance" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[1]"> | ||
<!--SUBSITE Finance Master Index --> | ||
<param desc="p_Name">$(id)</param> | ||
<configuration ref="coveo/defaultIndexConfiguration"> | ||
<pushPermissionsOnRebuild>true</pushPermissionsOnRebuild> | ||
<queryConfiguration ref="coveo/defaultIndexConfiguration/queryConfiguration"> | ||
<maximumAge>00:00:00</maximumAge> | ||
</queryConfiguration> | ||
</configuration> | ||
<locations hint="list:AddCrawler"> | ||
<crawler name="ContentCrawlerPersonal" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>master</database> | ||
<root>/sitecore/content/Finance</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
<!--<crawler name="ContentCrawlerBusiness" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"><database>master</database><root>/sitecore/content/Finance/Business</root><stopOnError>true</stopOnError></crawler> --> | ||
<crawler name="MediaLibraryCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>master</database> | ||
<root>/sitecore/media library/Finance/Documents</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
</locations> | ||
<strategies hint="list:AddStrategy"> | ||
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoSyncMaster"/> | ||
</strategies> | ||
<propertyStore ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> | ||
<enableItemLanguageFallback>false</enableItemLanguageFallback> | ||
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | ||
</index> | ||
<index id="Coveo_web_index_Finance" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider" patch:before = "*[2]"> | ||
<!--SUBSITE Finance Web Index --> | ||
<param desc="p_Name">$(id)</param> | ||
<configuration ref="coveo/defaultIndexConfiguration" /> | ||
<locations hint="list:AddCrawler"> | ||
<crawler name="ContentCrawlerPersonal" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>web</database> | ||
<root>/sitecore/content/Finance</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
<!--<crawler name="ContentCrawlerBusiness" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"><database>web</database><root>/sitecore/content/Finance/Business</root><stopOnError>true</stopOnError></crawler> --> | ||
<crawler name="MediaLibraryCrawler" type="Sitecore.ContentSearch.SitecoreItemCrawler, Sitecore.ContentSearch"> | ||
<database>web</database> | ||
<root>/sitecore/media library/Finance/Documents</root> | ||
<stopOnError>true</stopOnError> | ||
</crawler> | ||
</locations> | ||
<strategies hint="list:AddStrategy"> | ||
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/coveoOnPublishEndAsync"/> | ||
</strategies> | ||
<propertyStore ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> | ||
<enableItemLanguageFallback>false</enableItemLanguageFallback> | ||
<enableFieldLanguageFallback>false</enableFieldLanguageFallback> | ||
</index> | ||
</indexes> | ||
</configuration> | ||
</contentSearch> | ||
</sitecore> | ||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Coveo.SearchProvider.Pipelines; | ||
using Coveo.SearchProvider.InboundFilters; | ||
|
||
namespace SitecoreHabitatDemo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Namespace à mettre à jour. |
||
{ | ||
public class ExcludeDesignerFiles : AbstractCoveoInboundFilterProcessor | ||
{ | ||
public override void Process(CoveoInboundFilterPipelineArgs args) | ||
{ | ||
if (args.IndexableToIndex != null && !args.IsExcluded && ShouldExecute(args)) | ||
{ | ||
var extension = args.IndexableToIndex.Item.GetFieldValue("Extension"); | ||
|
||
if ((extension == "tif") || (extension == "indd") || (extension == "psd")) | ||
{ | ||
args.IsExcluded = true; | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Coveo.SearchProvider.Pipelines; | ||
using Coveo.SearchProvider.InboundFilters; | ||
|
||
namespace SitecoreHabitatDemo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Namespace à mettre à jour. |
||
{ | ||
public class ExcludeImageFiles : AbstractCoveoInboundFilterProcessor | ||
{ | ||
public override void Process(CoveoInboundFilterPipelineArgs args) | ||
{ | ||
if (args.IndexableToIndex != null && !args.IsExcluded && ShouldExecute(args)) | ||
{ | ||
var extension = args.IndexableToIndex.Item.GetFieldValue("Extension"); | ||
|
||
if ((extension == "gif") || (extension == "png") || (extension == "jpg")) | ||
{ | ||
args.IsExcluded = true; | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Coveo.SearchProvider.Pipelines; | ||
using Coveo.SearchProvider.InboundFilters; | ||
|
||
namespace SitecoreHabitatDemo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Namespace à mettre à jour. |
||
{ | ||
public class ExcludeItemOutsideHomeTree : AbstractCoveoInboundFilterProcessor | ||
{ | ||
public override void Process(CoveoInboundFilterPipelineArgs args) | ||
{ | ||
if (args.IndexableToIndex != null && !args.IsExcluded && ShouldExecute(args)) | ||
{ | ||
var path = args.IndexableToIndex.Item.Paths.FullPath; | ||
|
||
if (path.Contains("Settings") || path.Contains("Global") || path.Contains("Campaigns")) | ||
{ | ||
args.IsExcluded = true; | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Coveo.SearchProvider.Pipelines; | ||
using Coveo.SearchProvider.InboundFilters; | ||
|
||
namespace SitecoreHabitatDemo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Namespace à mettre à jour. |
||
{ | ||
public class ExcludeVideoFiles : AbstractCoveoInboundFilterProcessor | ||
{ | ||
public override void Process(CoveoInboundFilterPipelineArgs args) | ||
{ | ||
if (args.IndexableToIndex != null && !args.IsExcluded && ShouldExecute(args)) | ||
{ | ||
var extension = args.IndexableToIndex.Item.GetFieldValue("Extension"); | ||
|
||
if ((extension == "mp4") || (extension == "m4v")) | ||
{ | ||
args.IsExcluded = true; | ||
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert de changement de fin de fichier svp.