[MarkLogic Dev General] hyphens and cts:element-value-query

Geert Josten Geert.Josten at marklogic.com
Tue Feb 28 04:58:48 PST 2017


Hi Gary,

Sounds like you are running an unfiltered search. Either enable filtering to get rid of false positives, or switch to using element-range-query (which requires a range index). Keep in mind that value-queries don’t use range indexes (even if available), but rely on the universal index, which contains tokens, not values..

Cheers,
Geert

From: <general-bounces at developer.marklogic.com<mailto:general-bounces at developer.marklogic.com>> on behalf of Gary Larsen <gary.larsen at envisn.com<mailto:gary.larsen at envisn.com>>
Reply-To: MarkLogic Developer Discussion <general at developer.marklogic.com<mailto:general at developer.marklogic.com>>
Date: Monday, February 27, 2017 at 10:01 PM
To: 'General MarkLogic Developer Discussion' <general at developer.marklogic.com<mailto:general at developer.marklogic.com>>
Subject: [MarkLogic Dev General] hyphens and cts:element-value-query

I’m trying to get this cts query to treat hyphens as text:

cts:element-value-query(xs:QName(ename), 'value 1', ‘exact’)
cts:element-value-query(xs:QName(ename), 'value-1', ‘exact’)

Even though the ename  value-1 does not exist a match is found.

Thanks,
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20170228/6c7e5e17/attachment.html 


More information about the General mailing list