Good morning, It looks like you may be running into a bug that is obscuring the real source of the problem.
Do you have a range index configured to support that price constraint? If you're not sure, you can check by running the following query: import module namespace search = "http://marklogic.com/appservices/search" at "/MarkLogic/appservices/search/search.xqy"; let $options := <options xmlns="http://marklogic.com/appservices/search"> <constraint name="price"> <range type="xs:float" > <element ns="" name="price" /> <bucket name="test" ge="148" lt="150" > Costly </bucket> </range> </constraint> <transform-results apply="raw" /> </options> return search:check-options($options,true()) The "true" flag runs a check against your indexes to see if the right ones are configured. Give that a try; if indeed that is the problem, then add an element range index (type float) on the "price" element, and try your query again. Regards, --Colleen ________________________________________ From: [email protected] [[email protected]] On Behalf Of Nalini v [[email protected]] Sent: Wednesday, February 17, 2010 2:17 AM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] element nodes cannot have binary node children in <range/> Hi All, I am getting the error "element nodes cannot have binary node children", here is my query : import module namespace search = "http://marklogic.com/appservices/search" at "/MarkLogic/appservices/search/search.xqy"; let $options := <options xmlns="http://marklogic.com/appservices/search"> <constraint name="price"> <range type="xs:float" > <element ns="" name="price" /> <bucket name="test" ge="148" lt="150" > Costly </bucket> </range> </constraint> <transform-results apply="raw" /> </options> return search:search("price:39.98", $options) Error: [1.0-ml] XDMP-CHILDNODEKIND: $result -- element nodes cannot have binary node children Stack trace: in /MarkLogic/appservices/search/search-impl.xqy line 910: impl:do-query("price:39.98", <options xmlns="http://marklogic.com/appservices/search"><constraint<http://marklogic.com/appservices/search%22%3E%3Cconstraint> name="price"><range type="xs:float"><element ns="" n...</options>, (), 1, (), false()) can you tell me what is the problem. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
