Hi all, I'm investigating an issue at the moment where diacritic insensitive searches are not working correctly in our application.
I have narrowed the issue down to a particular function call in XQuery that is not returning results when it should: declare namespace dc='http://purl.org/dc/elements/1.1/' declare namespace opp='http://opp.oup.com/opp' let $query := cts:field-word-query("title","sivan",(),10.0) return cts:search(/opp:doc, $query, ("score-simple")) The above query should return results for documents which contain the term "Şivan". The empty () options I would have expected to work the same way as for cts:element-value-query(), i.e. that the query string is examined and if there are no diacritics in the search term a diacritic-insensitive search is done. (Although the documentation is unclear on this point). This is not working in ML 3.2 - the above query does not return documents containing the term "Şivan" in the title field. However, the same query in ML 4.1 works (i.e. it finds the correct document). The database configurations of the two servers are identical. Does anyone know if this was a bug in 3.2 and has been fixed in 4.0 or 4.1? Basically, I need to get this working in both 4.1 and 3.2 for backwards compatibility. Many thanks, -Steve -- Senior Software Engineer, Semantico Limited <mailto:[email protected]> <tel:+44.1273.358239> Registered in England and Wales no. 03841410, VAT no. GB-744614334. Registered office Lees House, 21-23 Dyke Road, Brighton BN1 3FE, UK. Check out all our latest news and thinking on the Discovery blog http://blogs.semantico.com/discovery-blog/ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
