Rob,
It's always a good idea to state which server release you are using, and
on which OS.
The behavior you've observed doesn't look right to me, but I couldn't
easily reproduce it either. That suggests that something
content-specific or version-specific is at work: if you have a support
contract, I'd suggest that you contact support.
Meanwhile, you might try some other approaches. Would
cts:element-value-query() be appropriate for this use-case? Or perhaps a
simple XPath?
/Journal/Volume/Issue/Article/PublishDate/Year[. eq 2009]
If a word-query is what you want, it would be more efficient to write
this as an element-word-query:
cts:search(
/Journal/Volume/Issue/Article/PublishDate,
cts:element-word-query(xs:QName('Year'), "2009", ("unstemmed"), 1)
)
thanks,
-- Mike
On 2009-02-05 07:14, Whitby, Rob, CMG wrote:
Can anyone explain why these 2 queries return different results?
count(
cts:search(
/Journal/Volume/Issue/Article/PublishDate/Year,
cts:word-query("2009", ("unstemmed"), 1)
)
)
= 3036 (the correct result)
count(
cts:search(
/Journal/Volume/Issue/Article/PublishDate/Year,
cts:word-query("2009", ("stemmed"), 1)
)
)
= 2757
Why is the "stemmed" setting causing some matches to be missed?
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general