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

Nick Lanham nick at marklogic.com
Tue May 16 12:56:57 PDT 2006


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



More information about the General mailing list