Re: [MarkLogic Dev General] snip:truncate-text() has been renamed to snip:truncate( ) in ML8

2015-04-22 Thread Erik Hennum
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: general-boun...@developer.marklogic.com 
[general-boun...@developer.marklogic.com] on behalf of Indrajeet Verma 
[indrajeet.ve...@gmail.com]
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
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] snip:truncate-text() has been renamed to snip:truncate( ) in ML8

2015-04-22 Thread Indrajeet Verma
Thank you Erik for your response!

Regards,
Indrajeet

On Wed, Apr 22, 2015 at 7:23 PM, Erik Hennum erik.hen...@marklogic.com
wrote:

  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:* general-boun...@developer.marklogic.com [
 general-boun...@developer.marklogic.com] on behalf of Indrajeet Verma [
 indrajeet.ve...@gmail.com]
 *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
 General@developer.marklogic.com
 Manage your subscription at:
 http://developer.marklogic.com/mailman/listinfo/general


___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] snip:truncate-text() has been renamed to snip:truncate( ) in ML8

2015-04-22 Thread Indrajeet Verma
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
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general