Reputation: 21
I am trying to use Entity Enrichment pipeline for document conversion. I have the following XQuery in the Query Console for a DB that has Content processing installed:
let $myxml := <node>George Washington never visited Norway. If he had a Social Security number, it might be 000-00-0001.
</node>
return cts:entity-highlight($myxml,
element { fn:replace($cts:entity-type, ":", "-") }
{ $cts:text })
...which results in the following error:
"Entity enrichment libraries not installed for host"
How to resolve this issue?
Upvotes: 1
Views: 142
Reputation: 166
cts:entity-enrich() and cts:entity-highlight() are no longer available, so that piece of code will not work in MarkLogic 8.
There are a number of ways to do entity enrichment of documents in MarkLogic, such as
For more information, drop me a note at stephen dot buxton at marklogic dot com
Upvotes: 2
Reputation: 4001
For MarkLogic 6, you can add entity enrichment libraries for your database by going to the MarkLogic console at 8001, choosing Configure, then Databases. Select your database and Content Processing beneath the database in the tree. Choose Install to install content processing libraries.
For MarkLogic 8, cts:entity-highlight
is no longer supported. Entity Enrichment Pipelines can be created, and cts:highlight
can be used for highlighting, e.g.:
cts:highlight($myxml, "Norway", <b>{ fn:replace($cts:text, "-", ":") }</b>)
...where the second parameter can be a query and the third parameter can include any markup.
It may also be useful to take a look at the MarkLogic Search Developer's Guide.
Upvotes: 1