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