[XQZone General] thesaurus... weighting synonyms less than original terms

Travis Raybold travis at raybold.com
Tue May 16 13:04:08 PDT 2006


thanks nick,

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 ;)

--travis

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.
>
> -nick
>
> 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.
>>
>> --travis
>> _______________________________________________
>> General mailing list
>> General at xqzone.marklogic.com
>> http://xqzone.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
> .
>




More information about the General mailing list