XQueryを使用してテキストと異なる用語を探したいと思います。これは私のコードです:XQueryで関数を使用できませんでした(関数を使用できませんでした)
declare namespace rec="http://xxx.xxx/xxx";
declare namespace cts="http://marklogic.com/cts";
for $r in /rec:Record
return
distinctive-terms($r/rec:text,<options xmlns="cts:distinctive-terms"> <max-terms>3</max-terms></options>)
私はimport module cts="http://marklogic.com/cts
にdeclare namespace cts=" http://marklogic.com/cts
を変更しましたが、私は、私はcts
の場所を見つけることができませんでした"... "
からそれをインポートする場所を必要とし、次のエラー
1.0-ml] XDMP-UNDFUN: (err:XPST0017) Undefined function distinctive-terms()
を取得します 誰かが私が何をすべきか知っていますか?
文字列内のすべてのスペースは何ですか? marklogicのドキュメントでは、「http://marklogic.com/cts」でスペースを明示的に指定していません。 –
btw、StackOverflow "cts"タグはAndroid互換性テストスイートに属しているため、類似の名前のMarkLogic名前空間には適していません。さまざまなタグが選択されている間にそのタグについてポップアップするblurbsを読むと便利です。 –