Hi Danny, Latest version if I am not mistaken: 5.0-2. It doesn't seem to depend on the data itself. Redeploying with different facet prefixes (something like ss:) prevents it from occurring. Perhaps it is because 's:' also matches on 'results:'? The term behind s: doesn't seem to make any difference either. I tried quoted values as well, same error..
Kind regards, Geert -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens Danny Sokolsky Verzonden: donderdag 26 januari 2012 23:04 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] Search app error searching 'results:detailed s:john' Hi Geert, What version of MarkLogic are you seeing this on? Do you have a query (perhaps with a sample document, if that is needed to make it happen) that demonstrates this? Thanks, -Danny -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Geert Josten Sent: Thursday, January 26, 2012 1:59 PM To: General MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Search app error searching 'results:detailed s:john' Hi, It looks like building an app with a search prefix name of s: causes some funny error when combining it with the results:detailed flag. Part of the search query gets turned into a cts:annotation, where a cts:query is expected by the code that is supposed to take care of it. A different prefix for the facet seems to bypass the problem.. 2012-01-26 16:38:40.878 Notice: App: XDMP-AS: (err:XPTY0004) facet-extract($child, $facet-name) -- Invalid coercion: <cts:annotation operator-ref="results" state-ref="detailed" qtextconst="results:detailed" xmlns:cts="http://marklogic.com/cts"/> as schema-element(cts:query) 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 642:3, 2012-01-26 16:38:40.878 Notice: App: in facet-extract(<cts:annotation operator-ref="results" state-ref="detailed" qtextconst="results:detailed" xmlns:cts="http://marklogic.com/cts"/>, "s:") [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 655:42, 2012-01-26 16:38:40.878 Notice: App: in facet-extract(<cts:and-query strength="20" qtextjoin="" qtextgroup="( )" xmlns:cts="http://marklogic.com/cts"><cts:element-range-query qtextpre="s:" qtextref="cts:annotation"...</cts:and-query>, "s:") [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: $parsed = <cts:and-query strength="20" qtextjoin="" qtextgroup="( )" xmlns:cts="http://marklogic.com/cts"><cts:element-range-query qtextpre="s:" qtextref="cts:annotation"...</cts:and-query> 2012-01-26 16:38:40.878 Notice: App: $facet-name = "s:" 2012-01-26 16:38:40.878 Notice: App: $child = <cts:annotation operator-ref="results" state-ref="detailed" qtextconst="results:detailed" xmlns:cts="http://marklogic.com/cts"/> 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 601:17, 2012-01-26 16:38:40.878 Notice: App: in facet-chiclet("s:"http://dbpedia.org/resource/Earth" results:detailed", <options xmlns="http://marklogic.com/appservices/search"><search-option>unfiltered< /search-option><page-length>10</page-l...</options>, "s:") [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: $qtext = "s:"http://dbpedia.org/resource/Earth" results:detailed" 2012-01-26 16:38:40.878 Notice: App: $options = <options xmlns="http://marklogic.com/appservices/search"><search-option>unfiltered< /search-option><page-length>10</page-l...</options> 2012-01-26 16:38:40.878 Notice: App: $facet-name = "s:" 2012-01-26 16:38:40.878 Notice: App: $parsed = <cts:and-query strength="20" qtextjoin="" qtextgroup="( )" xmlns:cts="http://marklogic.com/cts"><cts:element-range-query qtextpre="s:" qtextref="cts:annotation"...</cts:and-query> 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 243:34, 2012-01-26 16:38:40.878 Notice: App: in browse-facets((<search:facet name="c" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="http://en.wikipedia.org/wiki/Earth#abs...</search:facet>, <search:facet name="o" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="1.08321" count="1">1.08321</search:fac...</search:facet>, <search:facet name="p" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="http://dbpedia.org/ontology/Planet/apo...</search:facet>, ...), <search:qtext xmlns:search="http://marklogic.com/appservices/search" xmlns="">s:"http://dbpedia.org/resource/Earth" results:detailed</search:qtext>) [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: $facets = (<search:facet name="c" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="http://en.wikipedia.org/wiki/Earth#abs...</search:facet>, <search:facet name="o" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="1.08321" count="1">1.08321</search:fac...</search:facet>, <search:facet name="p" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="http://dbpedia.org/ontology/Planet/apo...</search:facet>, ...) 2012-01-26 16:38:40.878 Notice: App: $qtext = "s:"http://dbpedia.org/resource/Earth" results:detailed" 2012-01-26 16:38:40.878 Notice: App: $controls = map:map() 2012-01-26 16:38:40.878 Notice: App: $query = <search:query xmlns:search="http://marklogic.com/appservices/search" xmlns=""><cts:and-query strength="20" qtextjoin="" qtextgroup="( )" xmlns...</search:query> 2012-01-26 16:38:40.878 Notice: App: $quses = attribute{fn:QName("", "qtextpre")}{"s:"} 2012-01-26 16:38:40.878 Notice: App: $qnames = "s" 2012-01-26 16:38:40.878 Notice: App: $qfacet = "s" 2012-01-26 16:38:40.878 Notice: App: $facet = <search:facet name="s" xmlns:search="http://marklogic.com/appservices/search" xmlns=""><search:facet-value name="http://dbpedia.org/resource/Earth" cou...</search:facet> 2012-01-26 16:38:40.878 Notice: App: $index = 4 2012-01-26 16:38:40.878 Notice: App: $facet-name = xs:untypedAtomic("s") 2012-01-26 16:38:40.878 Notice: App: $facet-count = xs:unsignedLong("1") 2012-01-26 16:38:40.878 Notice: App: $match = fn:true() 2012-01-26 16:38:40.878 Notice: App: $list-items = <li xmlns="http://www.w3.org/1999/xhtml"><a href="/search?q=results%3Adetailed">http://dbpedia.org/resour...</li> 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 142:4, 2012-01-26 16:38:40.878 Notice: App: in facets() [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: $side-bar = (attribute{fn:QName("", "name")}{"c"}, attribute{fn:QName("", "name")}{"o"}, attribute{fn:QName("", "name")}{"p"}, ...) 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 481:23, 2012-01-26 16:38:40.878 Notice: App: in sidebar() [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: $view = <view>search</view> 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 99:10, 2012-01-26 16:38:40.878 Notice: App: in canvas() [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: in /lib/standard.xqy, at 64:13, 2012-01-26 16:38:40.878 Notice: App: in asc:page() [1.0-ml] 2012-01-26 16:38:40.878 Notice: App: in /main.xqy, at 9:0 [1.0] Perhaps worth investigating.. Cheers, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 [email protected] www.dayon.nl De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
