Tim,
 
The particular issue that was being discussed in that thread involved a
bug only in cts:element-attribute-value-queries with wildcards, so I
don't think it applies to your situation.
 
A couple of notes on your situation:

*       

        Just to make sure, you realize that your two search strings are
mutually exclusive, right?  The search for "Personality*" will return
only results where the Title is a single word that starts with
"Personality".  The search for "Personality *" will return only results
where the Title is multiple words, the first of which is "Personality".
To match both of those, you would need to search for "Personality* *".
*       

        I'm not sure (maybe there's somebody else on the list who has a
better understanding and could explain it) how using a trailing wildcard
and stemming in the same search acts.  I'd assume you should also be
getting results for "Personalities*", and maybe "Personalize*" or
similar words (don't know how much variation the stemming engine
allows).
*       

        Even though you explicitly specified case-insensitive, have you
tried putting the search string in all lower-case?  Just an idea to try
to narrow down the scope.

Otherwise, could you perhaps include some examples of results that are
being included that shouldn't be?
 
Doug Glidden 
(703) 317-7523 
http://dougglidden.blog.boeing.com <http://dougglidden.blog.boeing.com/>

 

  _____  

From: Tim Meagher [mailto:[email protected]] 
Sent: Thursday, June 18, 2009 11:14
To: 'General Mark Logic Developer Discussion'
Subject: [MarkLogic Dev General] Can someone explain what the
wildcardsearch problem was that was fixed in 4.0.5?



Hi Folks,

 

I noticed a comment by Danny Sokolsky at one point.  I'm running into
some interesting results performing a wildcarded lexicon search using
cts:element-values() with a cts:element-value-query() subsearch:




cts:element-values(xs:QName("Title"), (),

  ("item-frequency", "item-order", "descending"),

  cts:and-query((

    cts:element-value-query(xs:QName("Title"), string("Personality*"),

      ("case-insensitive", "diacritic-insensitive",
"punctuation-insensitive",

        "stemmed", "wildcarded")),

    cts:directory-query("/Root/SubDir/", "infinity") 

  ))

)

 

Some of the results do not contain "Personality".  If I add a space
before the asterisk in the search ("Personality *"), then the results
only include titles containing "Personality".

 

Note that I have set my fragment root so that there should be only one
occurrence of the element "Title" within a fragment.

 

Thank you!

 

Tim Meagher - AAOM Consulting

 

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to