Paulwms
Paulwms

Reputation: 95

MarkLogic Data hub JOBS DB search options config

I need to customize the search options for the JOBS DB. There is an OOTB jobs.xml search options config file being loaded by the mlLoadModules gradle task, but I don't know where I can override it. According to this page, I should put JOBS DB artifacts in src/main/ml-modules-jobs. So I tried src/main/ml-modules-jobs/options/jobs.xml, but that did not load. If anyone has any suggestions for how to customize JOBS DB search options, please share.

TIA

Upvotes: 1

Views: 57

Answers (1)

Paulwms
Paulwms

Reputation: 95

After a bit more research, I've discovered that instead of allowing ml-gradle to use the folder structure to determine which appserver to load the options for, apparently only the ../ml-modules/options location is supported and those files all get loaded for the FINAL appserver (i.e., like /Default/data-hub-FINAL/rest-api/options/). But, in ml-gradle ver 3.12.0, there was a new task type added: com.marklogic.gradle.task.client.CopySearchOptionsTask that can be used to create a custom task to copy the options file from the FINAL appserver location to the JOBS appserver location in the modules db. This works for me, though its another step to execute this task after each mlLoadModules task. See this doc for more info.

Upvotes: 1

Related Questions