3.1.4.73 UpdateCrawlRule

This operation is used to update a crawl rule for the portal content project.

 <wsdl:operation name="UpdateCrawlRule">
   <wsdl:input message="UpdateCrawlRuleSoapIn"/>
   <wsdl:output message="UpdateCrawlRuleSoapOut"/>
 </wsdl:operation>

The protocol client sends an UpdateCrawlRuleSoapIn request message and the protocol server responds with a UpdateCrawlRuleSoapOut response message, as follows:

  • On receipt the protocol server validates the versionIn value from the request message. If it doesn’t match the current configuration version of the crawler application, the protocol server MUST throw a SOAP fault message containing an UpdatedConcurrencyException.

  • The protocol server then updates the current configuration version of the crawler application to the value of versionIn+1.

  • Then, the protocol server MUST normalize the path parameter of the operation the same way it normalizes the path element of the ActivateCrawlRule operation request message. Then, if a crawl rule with the same normalized path does not exist in the portal content project, the protocol server MUST throw a SOAP fault message containing a DeletedConcurrencyException.

  • Then, the protocol server MUST update the properties of the crawl rule using the elements of the rule parameter, setting the path (normalized the same way as the preceding path parameter), type, suppressIndexing, followComplexUrls, crawlAsHttp, contentClass, and PluggableSecurityTrimmerId properties of the crawl rule to the values of the corresponding elements of the rule parameter. Other elements of the rule parameter MUST be ignored.

On success, the protocol server MUST return the updated path property of the crawl rule in the UpdateCrawlRuleResult element of the response message.

  • On error, the protocol server MUST throw a SOAP fault message.