Hi Otis,
        Since I have expand="true" in SynonymFilterFactory, the
DebugQuery shows the query is expanded with all the synonyms.
Eg;
Without synonym the query is:
Review:amaz | name:amaz | description:amaz

With Synonym the query is:
(Review:amaz Review:fabul  Review:improbable  Review:incredible )|
name:amaz | (description:amaz description:fabul  description:improbable
description:incredible )

There are around 20 synonyms for each word. I am not sure if 20 keywords
are causing the latency.

Thanks,
Kalyan Manepalli

-----Original Message-----
From: Manepalli, Kalyan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2008 11:34 AM
To: solr-user@lucene.apache.org
Subject: RE: Synonyms impacting the performance

Hi Otis,
I tested by taking out the newly added synonyms data and the query time
was back to normal ~125ms.
I will verify the debugQuery and update you with the results

Thanks,
Kalyan Manepalli
-----Original Message-----
From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2008 11:26 AM
To: solr-user@lucene.apache.org
Subject: Re: Synonyms impacting the performance

Hi,

That doesn't sound normal, no.  Do you know what your query looks like
after synonym expansion? (you can use debugQuery=true or peek at the
logs)  Is that really the only thing that changed?  In other words, if
you comment out the SynonymFactory in solrconfig.xml and restart Solr do
things really go back to 125ms?
Are you seeing slowness for one particular query or for all of them?


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




________________________________
From: "Manepalli, Kalyan" <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Tuesday, November 11, 2008 11:58:37 AM
Subject: Synonyms impacting the performance

Hi all,

            I recently implemented query time synonyms in my application
and I am seeing drastic performance degradation.

The synonyms file is counts around 1000 words.

The average querytime without synonyms is around 125 ms and with
synonyms it jumps to 20 secs.

Am I missing something here, since this doesn't look like a normal
behavior



Any suggestions on this will be helpful



Thanks,

Kalyan Manepalli

Reply via email to