Thanks, I tried on 8.0-6 with no luck.




On 24/10/2016, 16:36, "general-boun...@developer.marklogic.com on behalf of 
Will Thompson" <general-boun...@developer.marklogic.com on behalf of 
wthomp...@oconnors.com> wrote:



    Hi Rob,



    Are you running the most recent update, 8.0-6? There were some 
wildcard-related bugfixes in that release, including this one: "40053: 
punctuation sensitive wildcarded document matching with cts:element-value-query 
might give incorrect results". It's unclear what exactly that fixes, but it's 
worth a shot.



    -Will





    > On Oct 24, 2016, at 9:18 AM, Whitby, Rob <rob.whi...@springer.com> wrote:

    >

    > Hi,

    >

    > I’m having trouble getting a preceding-wildcard search to work 
unfiltered. In 2.xml, the presence of the 2nd email ending with "com" 
(rob@xxxcom) makes it a match for the search "*@foo.com”.

    >

    > I’ve tried with all the db indexes enabled - is this just not possible to 
resolve accurately without filtering?

    >

    > xdmp:document-insert("1.xml", <doc><email>r...@foo.com</email></doc>),

    > xdmp:document-insert("2.xml", 
<doc><email>r...@foo.com.bar</email><email>rob@xxxcom</email></doc>);

    > cts:search(/, cts:element-value-query(xs:QName("email"), "*@foo.com", 
"wildcarded"), "unfiltered")

    >

    >

    >

    > Thanks

    > Rob

    >

    >

    >

    >

    > _______________________________________________

    > General mailing list

    > General@developer.marklogic.com

    > Manage your subscription at:

    > http://developer.marklogic.com/mailman/listinfo/general



    _______________________________________________

    General mailing list

    General@developer.marklogic.com

    Manage your subscription at:

    http://developer.marklogic.com/mailman/listinfo/general


_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to