[MarkLogic Dev General] app-builder custom constraint module path

Frank Rubino frubino at spectrumchemical.com
Tue Dec 21 14:10:50 PST 2010


Hi-
I am writing a custom constraint on 4.1-6.

I am following the docs that say:

To run a custom constraint that references the above custom code, put the above module in the
App Server root

So my custom facet code goes in my module  scfacets.xqy, which is in my app server root.

But its location seems to get resolved incorrectly:

010-12-21 14:01:36.844 Notice: prod-search: XDMP-TEXTNODE: /MarkLogic/appservices/search/scfacets.xqy -- Server unable to build program from non-text document

The appbuilder code is looking for my custom facet code in appservices. I am making the reference inline in the appbuilder config.xqy:

  <constraint name="Frank">
        <custom>
        <parse apply="parse" ns="scfacets" at="scfacets.xqy"/>
        <start-facet apply="start-facet" ns="scfacets" at="scfacets.xqy"/>
        <finish-facet apply="finish-facet" ns="scfacets" at="scfacets.xqy"/>
        </custom>
  </constraint>

I also tried putting this mod at a different path and referencing it with relative path notation.

How come my path gets resolved this way?

Thanks,
Frank


This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please immediately return it to the sender and delete it from your system.  Thank you


More information about the General mailing list