dsccommunity / dsccommunity/SharePointDsc

SPSearchContentSource CrawlSetting not applied for ContentSourceType Website

Open
#629 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs investigation
Dominant language
C#
Stars
246
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Details of the scenario you try and problem that is occurring:
For Content Sources of type website the CrawlSetting is not configured to crawl only the fist level. Custom is selected instead without limitation.

The DSC configuration that is using the resource:
SPSearchContentSource "ContentSource_$($ContentSource.Name.Replace(' ', ''))" {
Name = $ContentSource.Name
ServiceAppName = $SearchServiceApplicationName
Addresses = $ContentSource.Addresses
ContentSourceType = "Website"
CrawlSetting = "CrawlFirstOnly"
IncrementalSchedule = MSFT_SPSearchCrawlSchedule {
ScheduleType = "Weekly"
CrawlScheduleDaysOfWeek = @("Sunday")
StartHour = "09"
StartMinute = "0"
}
Priority = "Normal"
Ensure = "Present"
PsDscRunAsCredential = $SetupAccount
DependsOn = "[SPSearchTopology]SearchTopology"
}

Version of the Operating System and PowerShell the DSC Target Node is running:
Windows Server 2012 R2, PowerShell 5.1

Version of the DSC module you're using:
1.7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the SPSearchContentSource resource and trace how CrawlSetting is handled for ContentSourceType Website. Reproduce the shown DSC configuration and verify whether CrawlFirstOnly is applied instead of Custom without limitation. Done means website content sources honor the requested first-level crawl setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.