Hi, Indrajeet:

The search.xqy module has the public, documented interfaces for the Search API.

The snippet.xqy module is an implementation module. None of the functions 
declared in that module are documented as public interfaces. Even if a function 
of the same name and signature happens to exist in a new release of MarkLogic, 
the semantics could still change, even in a point release.

Probably, that's already well understood, but I wanted to make sure.  If you're 
comfortable taking responsibility for that risk, you might want to test the 
inputs and outputs of the implementation function to see if the cases you need 
to support happen to be implemented consistently (not only for this upgrade but 
for future upgrades as well).


Erik Hennum

________________________________
From: [email protected] 
[[email protected]] on behalf of Indrajeet Verma 
[[email protected]]
Sent: Wednesday, April 22, 2015 12:52 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] snip:truncate-text() has been renamed to 
snip:truncate( ) in ML8

Hi,

We are using snip:truncate-text() in our code in ML6 and after upgrading it to 
ML8, It is showing XDMP-UNDFUN: (err:XPST0017) Undefined function 
snip:truncate-text().

We looked into below module and found this function has been modified . We 
found similar function snip:truncate().
import module namespace snip = 
"http://marklogic.com/appservices/search-snippet"; at 
"/MarkLogic/appservices/search/snippet.xqy";

So wanted suggestions if we can use snip:truncate() in ML8 as a replacement of 
snip:truncate-text() in ML6.

Regards,
Indrajeet
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to