Thanks Dan! I got that working.
Frank

On Dec 21, 2010, at 5:57 PM, Danny Sokolsky wrote:

> Hi Frank,
>
> It looks like your module path is trying to be resolved relative to the 
> location of the search API code (because the path does not begin with a /).
>
> So if you change the at attributes t0:
>
> at="/scfacets.xqy"
>
> that might solve your problem.
>
> You did not say if your App Server root is on the filesystem or in a 
> database.  If in a database, it must be inserted as a text document and the 
> user executing the code must have a role corresponding to an execute 
> permission.
>
> Hopefully that helps a little.
>
> -Danny
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Frank Rubino
> Sent: Tuesday, December 21, 2010 2:11 PM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] app-builder custom constraint module path
>
> 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
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
> 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.


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
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to