[XQZone General] thesaurus... weighting synonyms less
than original terms
travis at raybold.com
Tue May 16 13:04:08 PDT 2006
i had misunderstood what that parameter was for... it does indeed work
beautifully. i had just figured that out...
thanks for helping cleear up my muddled brain ;)
Nick Lanham wrote:
> this is already possible.
> the third argument ($new-weight as xs:integer) is the weight to assign
> to the synonym queries. if you want to assign different weights to
> different synonyms you can call expand multiple times, once for each
> weight you want, with the synonyms you want for that weight.
> Travis Raybold wrote:
>> has anyone modified the thsr:expand function to be able to weight the
>> synonyms it looks up less than the original terms? this seems like a
>> fairly common thing, so i though i'd check. if not, i'll try and
>> modify it and post my new function here if it looks helpful.
>> General mailing list
>> General at xqzone.marklogic.com
> General mailing list
> General at xqzone.marklogic.com
More information about the General