Don't use wildcards. A leading wildcard matches against every token in the 
index. This is the search equivalent of a full table scan in a relational 
database.

Instead, create a field type that tokenizes e-mail addresses into pieces, then 
use phrase search against that.

The address "f...@yahoo.com" might be tokenized into "fred", "@", "yahoo", 
"com".

wunder

On Mar 1, 2013, at 10:49 AM, girish.gopal wrote:

> Thanks Jack. The search is slow only when it is issued for the first time. 
> Ex. querying for *@gmail* takes 20+ seconds for the first time; when I
> re-issue the same search, then it returns pretty quick(Possibly reading out
> of cache). 
> But when I issue a new search *@yahoo.* then this too takes about 20+ secs
> before returning with results. Basically I seem to have a problem when a new
> search is issued. 
> Is this normal?
> 
> My Specs are:
> Windows Server 2008 64 bit Dual Quad Core CPUs with 64 GB of RAM.
> I have allocated 55GB of memory to Tomcat in its config.
> 
> I will check on the Heap.
> Regards,
> Giri
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Email-Search-Slow-tp4044064p4044072.html
> Sent from the Solr - User mailing list archive at Nabble.com.





Reply via email to