You can use cts:entity-highlight to create something that only operates on certain $cts:entity-types:
http://developer.marklogic.com/pubs/4.0/apidocs/SearchBuiltins.html#cts: entity-highlight -Danny -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vidhya Arvind Sent: Monday, December 01, 2008 7:23 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] entity enrichment Hi All, Is there a way to limit the entity enrichment to places(|e:gpe)| and names(|e:person)? I am trying to avoid wrong mappings like the one below| <article-title xmlns:e="http://marklogic.com/entity">Robustness of mean E(X) and <e:organization>R</e:organization> charts</article-title> |Thanks Vidhya Sample Query import module namespace entity="http://marklogic.com/entity" at "/MarkLogic/entity.xqy"; let $title := <article-title>Robustness of mean E(X) and R charts</article-title> return entity:enrich($title) | _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
