Skip to content
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

Open
wants to merge 72 commits into
base: coveo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
d9d1106
first build
vbernard-coveo Apr 5, 2017
465386b
Added App_Config, Processor and InboudFilter
vbernard-coveo Apr 5, 2017
9a37675
Moved some files from root to /Foundation/CoveoIndexing
vbernard-coveo Apr 6, 2017
26eee60
Update config for serialization
vbernard-coveo Apr 6, 2017
34eb73f
Adding serialized items
vbernard-coveo Apr 7, 2017
2c8899c
Revert "first build"
vbernard-coveo Apr 7, 2017
891924a
Revert "Adding serialized items"
vbernard-coveo Apr 7, 2017
1164f81
Change gitignore file
vbernard-coveo Apr 7, 2017
1aff014
Namespace change in CoveoIndexing foundation
vbernard-coveo Apr 7, 2017
c353f70
Configured CoveoSearch and CoveoIndexing serialization
vbernard-coveo Apr 7, 2017
4951626
Merge remote-tracking branch 'refs/remotes/origin/CoveoFoundation' in…
vbernard-coveo Apr 7, 2017
e710cfd
Removed verticals indexes
vbernard-coveo Apr 7, 2017
ab87e86
Add Habitat index
vbernard-coveo Apr 7, 2017
193a062
Serialize CoveoIndexing facets
vbernard-coveo Apr 7, 2017
5637ef5
Merge pull request #2 from coveord/CoveoSearch-Components
vbernard-coveo Apr 11, 2017
96fbdae
Remove 2 verticals inbound filters, removed copyright, removed some f…
vbernard-coveo Apr 11, 2017
d9e7f63
Revert .vs folder in .gitignore
vbernard-coveo Apr 11, 2017
ed40c50
Added Coveo Assemblies to gulp sequence and to gitignore
vbernard-coveo Apr 11, 2017
5c7c52f
Remove map point category field
vbernard-coveo Apr 11, 2017
e415358
Split Sitecore and Coveo DLL, exclude 2 inbound filters
vbernard-coveo Apr 11, 2017
a98d5ae
gulpfile typo
vbernard-coveo Apr 11, 2017
8d76510
remove field
vbernard-coveo Apr 11, 2017
da1145c
deleted config file in .vs folder
vbernard-coveo Apr 11, 2017
ace7488
Change facet serialization folder
vbernard-coveo Apr 11, 2017
550ca34
Adjusting HasLayout inbound filter
vbernard-coveo Apr 11, 2017
ca09678
Moved configs in Project level, change Sitecore assemblies for the nu…
vbernard-coveo Apr 11, 2017
f56bfde
Indentation
vbernard-coveo Apr 11, 2017
ea211fc
Remove sitecore assemblies from gulp file
vbernard-coveo Apr 11, 2017
0069b0e
Removed unused item group
vbernard-coveo Apr 11, 2017
ddcf87b
Serialize Features items and Project Common items
vbernard-coveo Apr 11, 2017
47f6f9c
Added Coveo in Habitat layout!
vbernard-coveo Apr 11, 2017
95b02df
CSS job
vbernard-coveo Apr 11, 2017
5784702
Added Coveo Search feature page, CSS update
vbernard-coveo Apr 12, 2017
c624441
Added media CoveoSearch media library and Foundation media folder
vbernard-coveo Apr 12, 2017
cac0b30
Added Coveo Indexing foundation page and stocks pictures
vbernard-coveo Apr 12, 2017
1a8761d
Modified CSS and changed Searchview.cshtml
vbernard-coveo Apr 12, 2017
dcb01f2
CSS update
vbernard-coveo Apr 12, 2017
405f1f9
CSS corrections
vbernard-coveo Apr 13, 2017
195ad0d
CoveoHabitat CSS and add Begin and End NoIndex in Habitat layout
vbernard-coveo Apr 13, 2017
504e90e
Added folder in settings for sort, remove facet settings
vbernard-coveo Apr 13, 2017
8bee9ec
Added farmname
vbernard-coveo Apr 13, 2017
6c17dab
Moved pictures and removed foundation media folder
vbernard-coveo Apr 13, 2017
3f453a7
Change Foundations serialization options
vbernard-coveo Apr 13, 2017
dea4960
Set sitecore reference to private
vbernard-coveo Apr 13, 2017
9ff6b4c
Add description in view, revert gulp-config
vbernard-coveo Apr 13, 2017
8cd2d43
Gulp config line indent
vbernard-coveo Apr 13, 2017
84f1add
Corrected habitat CSS and Searchview
vbernard-coveo Apr 13, 2017
0481b72
Mis a jour de la pull request en fonctions des commentaires de JF
vbernard-coveo Apr 13, 2017
2c85cce
Corrected the involuntary deleted files
vbernard-coveo Apr 19, 2017
49c83ed
Added involuntary deleted files part 2
vbernard-coveo Apr 20, 2017
608c192
Added searchbox parameters
vbernard-coveo Apr 20, 2017
e76cf7f
Removed coveo navbar, revert all standard values to original navbar. …
vbernard-coveo Apr 20, 2017
f5c6d33
Rolled back the _Standard Value modification to be original and inclu…
vbernard-coveo Apr 24, 2017
4a43a9a
Added quickview CSS and rules on the search page
vbernard-coveo Apr 24, 2017
375dbb4
Quickview overlay
vbernard-coveo Apr 25, 2017
e414779
Added switch for Habitat and Coveo searchbox, removed from final layo…
vbernard-coveo Apr 27, 2017
c58e3bd
Reviewed flguillemette comments
vbernard-coveo May 29, 2017
9c92360
Paul's modification
vbernard-coveo Jun 20, 2017
cab4530
Corretion to jeff comments
vbernard-coveo Jun 27, 2017
a93ccfc
Fixed code styling and formatting
Jul 18, 2017
47b9adc
Configuration changes
Jul 19, 2017
1b2ca52
Various fixes
Jul 19, 2017
5623eec
Small fixes related to my code review
Jul 19, 2017
32c1b87
Correct javascript in SearchBoxView for the switcher
vbernard-coveo Aug 2, 2017
66412e7
Merge branch 'CoveoFoundation' of https://github.com/coveord/Habitat.…
vbernard-coveo Aug 2, 2017
66ca53f
no message
vbernard-coveo Aug 3, 2017
1ce5f0f
end lines
vbernard-coveo Aug 3, 2017
c8c9eb7
Corrected few jeff comments from Juley 2017
vbernard-coveo Aug 7, 2017
9441575
changes in SearchboxSwitcher, modification to every _ _Standard Value…
vbernard-coveo Sep 6, 2017
b319fb8
YML items corrections
vbernard-coveo Sep 7, 2017
edac1b3
Added datasource to each SearchboxView item in the __Standard Values.…
vbernard-coveo Sep 7, 2017
2d52f70
Added datasources for all Coveo components
vbernard-coveo Sep 7, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ lib/System/*
!lib/System/readme.MD
.sonar
vars.user.cmd
/.vs
src/**/.vs/
/target
/node_modules
temp/
*.ncrunchproject
*.ncrunchsolution
.vscode
nCrunchTemp*.*
nCrunchTemp*.*

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.

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" />

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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>
Expand Down
1,028 changes: 1,028 additions & 0 deletions src/Foundation/CoveoIndexing/code/.vs/config/applicationhost.config

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Choose a reason for hiding this comment

The 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" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Même commentaire par rapport au namespace

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meme commentaire qu'en haut

Choose a reason for hiding this comment

The 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peux-tu remettre la ligne<?xml ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La ligne XML n'est toujours pas là

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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/">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peux-tu remettre le xmlns sur la même ligne que <configuration

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ce n'est toujours pas fait.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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>

Choose a reason for hiding this comment

The 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">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les fields vont aller avec les projets

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déplacer dans project/Common

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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" />

Choose a reason for hiding this comment

The 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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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"/>

Choose a reason for hiding this comment

The 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"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changer pour sysdate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

<field fieldName="ytvideoduration" fieldTypeName="integer" />

Choose a reason for hiding this comment

The 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" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pas de fields de pokemons.

</externalFields>
</fieldMap>
<documentOptions>
<fields hint="raw:AddComputedIndexField">

Choose a reason for hiding this comment

The 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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déplacer les fields dans project/common

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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">

Choose a reason for hiding this comment

The 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>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi on exclue ce field déjà?

</excludeField>
</documentOptions>
<siteName>habitat</siteName>

Choose a reason for hiding this comment

The 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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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]">

Choose a reason for hiding this comment

The 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>
21 changes: 21 additions & 0 deletions src/Foundation/CoveoIndexing/code/ExcludeDesignerFiles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Coveo.SearchProvider.Pipelines;
using Coveo.SearchProvider.InboundFilters;

namespace SitecoreHabitatDemo

Choose a reason for hiding this comment

The 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;
}
}
}
}
}
21 changes: 21 additions & 0 deletions src/Foundation/CoveoIndexing/code/ExcludeImageFiles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Coveo.SearchProvider.Pipelines;
using Coveo.SearchProvider.InboundFilters;

namespace SitecoreHabitatDemo

Choose a reason for hiding this comment

The 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;
}
}
}
}
}
21 changes: 21 additions & 0 deletions src/Foundation/CoveoIndexing/code/ExcludeItemOutsideHomeTree.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Coveo.SearchProvider.Pipelines;
using Coveo.SearchProvider.InboundFilters;

namespace SitecoreHabitatDemo

Choose a reason for hiding this comment

The 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;
}
}
}
}
}
21 changes: 21 additions & 0 deletions src/Foundation/CoveoIndexing/code/ExcludeVideoFiles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Coveo.SearchProvider.Pipelines;
using Coveo.SearchProvider.InboundFilters;

namespace SitecoreHabitatDemo

Choose a reason for hiding this comment

The 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;
}
}
}
}
}
Loading