Hi Lisa,

Do you have a sample document and sample search:search that demonstrates this 
behavior?  The reason I ask is that the default language (which is probably 
english, although it can depend on your environment) can creep into the mix 
pretty easily.  So exactly how your query is constructed can make a difference.

You can also try doing a search:parse on the qtext (which produces cts:query 
XML) and then turn that into a cts:query, and then run cts:contains on the 
document to see if it returns true or false.  Something like:

let $qtext := "text string"
let $options := (: options node for search:search goes here :)
let $doc := fn:doc("uri-of-document-in-question.xml")
return
cts:contains($doc, cts:query(search:parse($qtext, $options)) )

-Danny
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of Lisa Liddle 
[[email protected]]
Sent: Wednesday, February 16, 2011 12:02 PM
To: [email protected]
Subject: Re: [MarkLogic Dev General] search:search returning result in  
incorrect language

Yeah, I tried setting it to just "ru" and that didn't fix the problem. We're 
using 3-letter codes on all of our content and MarkLogic seems to correctly 
convert from the 3- to the 2-letter codes.


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.


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

Reply via email to