Wait, I thought the fuzzy match is invoked with a ~. I am not invoking any ~
but expanding my query terms with the synonyms at query time. So from what I
understarnd, when I query for James, internally, Solr would expand using
synonym search to James, Jim, Games, Jameson. So I guess, the original
i
Solr automatically scales the scores of fuzzy matches by their distance from an
exact match. So, you don't have to change anything.
wunder
On May 26, 2012, at 11:52 PM, Gau wrote:
> Hi Lori,
>
> Yeah. I thought exactly of the same solution. Use a copy field and boost
> the relevancy of the t
Hi Lori,
Yeah. I thought exactly of the same solution. Use a copy field and boost
the relevancy of the the exact match. But my question is more broad here.
For eg, if i have a synonym for James as Jim, Games, Jimmy, Jameson
And if I normalize the tf, norm, etc factors to 1, on searching for J
> Consider a db of just names. Now if I
> use synonym expansion at query time, I
> get a set of results.
> (Background: I created a class, which resets idf, tf, ..
> .all to 1) since
> they dont matter to me anymore. What really matters is, how
> closely does the
> query match to the given name.
I'm not sure about your approach, turning off most of the features
which produce a similarity measure in a vsm and then wanting to sort
by a similarity could lead to pain. (I don't know your usecase so this
could still be valid)
One approach to, (well what I think your usecase might be...) is to
u