You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matthew Runo <mr...@zappos.com> on 2008/08/14 18:35:50 UTC

Synonyms help in 1.3-HEAD?

Hello folks!

Having a heck of a time trying to get a synonyms file to work  
properly. It seems that something's wrong with the way it's been set  
up, but, honestly, I can't see anything wrong with it. Some samples...

This works...
zutanoapparel => zutano

But this does not...
aadias, aadidas, aaidas, adadas, adaddas, adaddis, adadias, adadis,  
adaidas, adaies, addedas, addedis, addidaas, addidads, addidais,  
addidas, addidascom, addiddas, addides, addidis, adeadas, adedas,  
adeddas, adedias, adiada, adiadas, adiadis, adiads, adida, adidaas,  
adidas1, adidass, adidaz, adidda, adiddas, adiddias, adidias, adidis,  
adiidas, aditas, adudas, afidas, aididas, wwwadidascom => adidas

This works...
liumiani, loomiani, lumaini, lumanai, lumani, lumiami, lumian,  
lumiana, lumianai, lumiari, luminani, lumini, luminiani => lumiani

But this does not...
clegerie, cleregie, clergerie, clergie, robertclaregie, robert  
claregie, robertclargeries, robert clargeries, robertclegerie, robert  
clegerie, robertcleregie, robert cleregie, robertclergeic, robert  
clergeic, robertclergerie, robertclergi, robert clergi, robertclergie,  
robert clergie, robertclergoe, robert clergoe, robertclerige, robert  
clerige, robertclerterie, robert clerterie => Robert Clergerie

This is how they're set up in my schema..
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"  
ignoreCase="true" expand="true"/>

Is there a limit to the number of terms in the list of options? It  
seems that the ones that are shorter work, while the longer lists  
don't. I'm at a loss as to why though..

Thanks for your time!

Matthew Runo
Software Engineer, Zappos.com
mruno@zappos.com - 702-943-7833


Re: Synonyms help in 1.3-HEAD?

Posted by Matthew Runo <mr...@zappos.com>.
Thank you for your suggestion, I really don't see anything 'wrong'  
with the longer lists.. I entered https://issues.apache.org/jira/browse/SOLR-702 
  for this issue, and attached relevant files. If you need anything  
more, don't hesitate to contact me!

Thanks for your time!

Matthew Runo
Software Engineer, Zappos.com
mruno@zappos.com - 702-943-7833

On Aug 14, 2008, at 10:16 AM, Yonik Seeley wrote:

> There should be no limit, so you may have uncovered a bug.  Could you
> open a JIRA issue?  If it's a real bug, it should get fixed before
> 1.3.
>
> -Yonik
>
> On Thu, Aug 14, 2008 at 12:35 PM, Matthew Runo <mr...@zappos.com>  
> wrote:
>> Hello folks!
>>
>> Having a heck of a time trying to get a synonyms file to work  
>> properly. It
>> seems that something's wrong with the way it's been set up, but,  
>> honestly, I
>> can't see anything wrong with it. Some samples...
>>
>> This works...
>> zutanoapparel => zutano
>>
>> But this does not...
>> aadias, aadidas, aaidas, adadas, adaddas, adaddis, adadias, adadis,  
>> adaidas,
>> adaies, addedas, addedis, addidaas, addidads, addidais, addidas,  
>> addidascom,
>> addiddas, addides, addidis, adeadas, adedas, adeddas, adedias,  
>> adiada,
>> adiadas, adiadis, adiads, adida, adidaas, adidas1, adidass, adidaz,  
>> adidda,
>> adiddas, adiddias, adidias, adidis, adiidas, aditas, adudas, afidas,
>> aididas, wwwadidascom => adidas
>>
>> This works...
>> liumiani, loomiani, lumaini, lumanai, lumani, lumiami, lumian,  
>> lumiana,
>> lumianai, lumiari, luminani, lumini, luminiani => lumiani
>>
>> But this does not...
>> clegerie, cleregie, clergerie, clergie, robertclaregie, robert  
>> claregie,
>> robertclargeries, robert clargeries, robertclegerie, robert clegerie,
>> robertcleregie, robert cleregie, robertclergeic, robert clergeic,
>> robertclergerie, robertclergi, robert clergi, robertclergie, robert  
>> clergie,
>> robertclergoe, robert clergoe, robertclerige, robert clerige,
>> robertclerterie, robert clerterie => Robert Clergerie
>>
>> This is how they're set up in my schema..
>> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
>> ignoreCase="true" expand="true"/>
>>
>> Is there a limit to the number of terms in the list of options? It  
>> seems
>> that the ones that are shorter work, while the longer lists don't.  
>> I'm at a
>> loss as to why though..
>>
>> Thanks for your time!
>>
>> Matthew Runo
>> Software Engineer, Zappos.com
>> mruno@zappos.com - 702-943-7833
>>
>>
>


Re: Synonyms help in 1.3-HEAD?

Posted by Yonik Seeley <yo...@apache.org>.
There should be no limit, so you may have uncovered a bug.  Could you
open a JIRA issue?  If it's a real bug, it should get fixed before
1.3.

-Yonik

On Thu, Aug 14, 2008 at 12:35 PM, Matthew Runo <mr...@zappos.com> wrote:
> Hello folks!
>
> Having a heck of a time trying to get a synonyms file to work properly. It
> seems that something's wrong with the way it's been set up, but, honestly, I
> can't see anything wrong with it. Some samples...
>
> This works...
> zutanoapparel => zutano
>
> But this does not...
> aadias, aadidas, aaidas, adadas, adaddas, adaddis, adadias, adadis, adaidas,
> adaies, addedas, addedis, addidaas, addidads, addidais, addidas, addidascom,
> addiddas, addides, addidis, adeadas, adedas, adeddas, adedias, adiada,
> adiadas, adiadis, adiads, adida, adidaas, adidas1, adidass, adidaz, adidda,
> adiddas, adiddias, adidias, adidis, adiidas, aditas, adudas, afidas,
> aididas, wwwadidascom => adidas
>
> This works...
> liumiani, loomiani, lumaini, lumanai, lumani, lumiami, lumian, lumiana,
> lumianai, lumiari, luminani, lumini, luminiani => lumiani
>
> But this does not...
> clegerie, cleregie, clergerie, clergie, robertclaregie, robert claregie,
> robertclargeries, robert clargeries, robertclegerie, robert clegerie,
> robertcleregie, robert cleregie, robertclergeic, robert clergeic,
> robertclergerie, robertclergi, robert clergi, robertclergie, robert clergie,
> robertclergoe, robert clergoe, robertclerige, robert clerige,
> robertclerterie, robert clerterie => Robert Clergerie
>
> This is how they're set up in my schema..
> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand="true"/>
>
> Is there a limit to the number of terms in the list of options? It seems
> that the ones that are shorter work, while the longer lists don't. I'm at a
> loss as to why though..
>
> Thanks for your time!
>
> Matthew Runo
> Software Engineer, Zappos.com
> mruno@zappos.com - 702-943-7833
>
>