Tried some things and still have false matches:
- 'exact' and 'punctuation-insensitive' options
- 'filtered' or 'unfiltered' in cts:search() makes no difference
Removed all brackets and still getting a match:
'Folders.Orders.OrderDate' matches on
'[Folders].[Orders].[OrderDate]'
Looked through the documentation on cts:element-value-query() and related
cts:word-query() but found no clues. It doesn't appear the brackets are
being treated as punctuation.
I think I would have noticed this before. Will try to test with an older
version, but wondering if it's time to log a support call.
Thanks,
Gary
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael
Blakeley
Sent: Tuesday, March 25, 2014 11:06 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] false match on cts:element-value-query
Element-value queries are hash lookups, and I believe the hash is
punctuation-insensitive. Have you tried adding the "punctuation-sensitive"
or "exact" options?
If that doesn't work, plan B is a range index: type=string, codepoint
collation. The codepoint collation is both the fastest and the strictest.
Then use http://docs.marklogic.com/cts:element-range-query for a value
lookup.
-- Mike
On 25 Mar 2014, at 07:29 , Gary Larsen <[email protected]> wrote:
> Hi,
>
> Getting a false match on:
>
> cts:element-value-query(xs:QName('modelPath'),
'Folders].[Orders].[OrderDate]')
>
> The value that it is matching on is: '[Folders].[Orders].[OrderDate]'
(starting bracket)
>
> Any reason why the bracket is being ignored? (using version 6.0-4.1)
>
> Thanks,
> Gary
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general