Hello,

I have a group of facets set-up using search:search, but when I click on the 
links to get the constrained results I receive the following error:

XDMP-AS: (err:XPTY0004) $right as element() -- Invalid coercion: () as element()
in /MarkLogic/appservices/search/search-impl.xqy, at 692:13,
in impl:joiner-constraint(map:map(<map:map 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:map="http://marklogic.com/xdmp/map";><map:entry key="toknum"><map:value 
xsi:type="xs:unsignedLong">11...</map:map>...XDMP-XMLFUNC: (err:XQTY0105) 
Functions cannot be used in the content of an element constructor...), 
<cts:word-query qtextref="cts:text" 
xmlns:cts="http://marklogic.com/cts";><cts:text>sort</cts:text><cts:option>case-insensitive</cts:optio...</cts:word-query>)
 [1.0-ml]
$ps = map:map(<map:map xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:map="http://marklogic.com/xdmp/map";><map:entry key="toknum"><map:value 
xsi:type="xs:unsignedLong">11...</map:map>...XDMP-XMLFUNC: (err:XQTY0105) 
Functions cannot be used in the content of an element constructor...)
$left = <cts:word-query qtextref="cts:text" 
xmlns:cts="http://marklogic.com/cts";><cts:text>sort</cts:text><cts:option>case-insensitive</cts:optio...</cts:word-query>
$left-str = "sort"
$opts = <options 
xmlns="http://marklogic.com/appservices/search";><additional-query><cts:collection-query
 xmlns:cts="http://marklo...</options>
$matched-constraint = <operator name="sort" 
xmlns="http://marklogic.com/appservices/search";><state 
name="relevance"><sort-order><score/></sort-order></state...</operator>
$is-bucketed = ()
$symbol = <joiner strength="50" apply="constraint" 
xmlns="http://marklogic.com/appservices/search"; 
xmlns:searchdev="http://marklogic.com/appservices/search/searchdev";>:</joiner>
$compare = "EQ"
$_ = ()
$right = ()
$bucket-name = ""
$qtext-rhs = ""
$qtext = "sort:"
in /MarkLogic/appservices/search/search-impl.xqy, at 503:50,

...and it just goes on from there. I'm guessing the $right variable has 
something to do with the search results, but I'm not sure what I need to do to 
fix the issue. Has anyone dealt with a similar error? Any ideas on how to fix 
it?

Thank you,
Maggie









_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to