Hi,

If index-time synonym expansion/indexing is used, then a large synonym file 
means your index is going to be bigger.
If query-time synonym expansion is used, then your queries are going to be 
larger (i.e. more ORs, thus a bit slower).

How much, it really depends on your specific synonyms, so I can't generalize.  
I have a feeling you are not dealing with millions of documents, in which case 
you can most likely ignore increase in index or query size.

 
Adding synonyms sounds like the easiest approach.  I'd try that and worry about 
improvement only IF I see that doesn't give adequate results.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: anuvenk <anuvenkat...@hotmail.com>
> To: solr-user@lucene.apache.org
> Sent: Tuesday, June 2, 2009 6:55:27 PM
> Subject: Is there Downside to a huge synonyms file?
> 
> 
> In my index i have legal faqs, forms, legal videos etc with a state field for
> each resource.
> Now if i search for real estate san diego, I want to be able to return other
> 'california' results i.e results from san francisco.
> I have the following fields in the index
> 
> title                                                  state          
> description...
> real estate san diego example 1           california         some
> description
> real estate carlsbad example 2             california         some desc
> 
> so when i search for real estate san francisco, since there is no match, i
> want to be able to return the other real estate results in california
> instead of returning none. Because sometimes they might be searching for a
> real estate form and city probably doesn't matter. 
> 
> I have two things in mind. One is adding a synonym mapping
> san diego, california
> carlsbad, california
> san francisco, california
> 
> (which probably isn't the best way)
> hoping that search for san francisco real estate would map san francisco to
> california and hence return the other two california results
> 
> OR
> 
> adding the mapping of city to state in the index itself like..
> 
> title                                         state             city          
>   
>                       
> description...
> real estate san diego eg 1    california   carlsbad, san francisco, san
> diego        some description
> real estate carlsbad eg 2      california   carlsbad, san francisco, san
> diego        some description
> 
> which of the above two is better. Does a huge synonym file affect
> performance. Or Is there a even better way? I'm sure there is but I can't
> put my finger on it yet & I'm not familiar with java either.
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Is-there-Downside-to-a-huge-synonyms-file--tp23842527p23842527.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to