Thanks for the reply, Geert. First of all, to answer your configuration questions, trailing wildcard searches and fast element trailing wildcard searches are enabled; trailing wildcard word position indexing is disabled. Now, to clarify the issue. A hyphen is considered a word boundary, hence searching for "10JUN2009*" returns only one result, but searching for "10JUN2009* *" returns two. Actually, it's a little more complicated than that: In content, the hyphen is considered to be a word character with an invisible word boundary on either side of it, but in a search term, it is taken as just a literal character with no word boundary. Thus, the only way to match a hyphen in a search with wildcards is to put a space, representing the word boundary, on either side of it. I can deal with all of that because it's consistent across all types of searches. What I can't deal with (well, I could, but it would be an ugly hack) is the apparent inconsistency between how case-sensitive and case-insensitive wildcarded attribute searches respond.
Doug Glidden -----Original Message----- From: Geert Josten [mailto:[email protected]] Sent: Wednesday, June 10, 2009 11:59 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] element-value-queryvs.element-attribute-value-query behavior difference Hi, I would have expected that doing a wildcard-enabled search for "10JUN2009*" would return two results, but I could be wrong. Can you tell which wildcard indexes are enabled? Is trailing wildcard index enabled? And wildcard can behave in some unexpected way, they tend not to match against word-boundaries. I am not sure how a minus sign is treated in a value search. One of the document on the MarkLogic site should contain some details about this, but I forgot which one. Just my quick two cents. HTH! Kind regards, Geert > Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
