[MarkLogic Dev General] Error XDMP-DUPATTR using lib-parser
Mariano Grau Calín
mgrau at grupojoly.com
Fri May 9 10:43:16 PDT 2008
Hello,
I put my field definition in $SEARCH-FIELD-MAP variable in lib-parser.xqy and run this code:
...
let $query := lp:get-cts-query('pub:CADIZ gato')
return $query
I get
<results warning="non-element node">cts:and-query((cts:element-word-query(xs:QName("DIARIO"), "CADIZ", ("lang=es"), 1), cts:word-query("gato", ("lang=es"), 1)), ())</results>
Where i can see expanded my search-field-map
However, my idea is to include this in lib-search search-criteria calling lp:serialize-cts-query but then get this error
Code:
let $query := lp:get-cts-query('pub:CADIZ gato')
return lp:serialize-cts-query($query)
Result:
ERROR: eval-in Equis at file:c:/Xquerys/
XDMP-DUPATTR: element cts:element-word-query { attribute weight { cts:element-word-query-weight($t) }, lp:serialize-QNames(cts:element-word-query-element-name($t)), cts:element-word-query-text($t), for $o as item()* in cts:element-word-query-options($t) return <cts:option>{ $o }</cts:option>, attribute weight { cts:element-word-query-weight($t) } } -- Two attributes with the same name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080509/3e5fe212/attachment.html
More information about the General
mailing list