Hi,

 

I'm actually facing a relevancy issue with multiword synonyms.

 

Let's expose it by a test case:

 

Giving the following synonyms definitions:

--------------------------------------------------------------------

capital punishement, death sentence, death penalty

--------------------------------------------------------------------

 

And a [EMAIL PROTECTED] defined at index time, so the document:

--------------------------------------------------------------------

The prisoner escaped just before the death sentence had been set.

--------------------------------------------------------------------

 

Will be indexed like

--------------------------------------------------------------------

The prisoner escaped just before the (death sentence | death penalty |
capital punishment) had been set.

--------------------------------------------------------------------

 

Now, if a user asks for "capital", the system will match "capital" (that
could mean 'Paris, capital of France') into the index time synonyms expanded
document, which doesn't have sense.

I was expecting that in order to match, I'll have to give the entire
expression "capital punishment" to match a document that contains " death
sentence" and not only a part of the expression.

 

It seems to be the normal Solr behaviour, but what I'm actually facing is a
relevance problem with the given results, since a given word contained in an
expression could have a completely different meaning compared with the same
isolated word.

 

Is their a trick or a way to match synonym complete expression and not the
words the expands have added into documents ?

 

Thanks,

 

Laurent

Reply via email to