Hi, I don't think there is anything inside Lucene/Solr that will give you granular timing information. The only thing I can think of is using &debugQuery=true and looking at timing info for different search components.
You're better off using a profiler, though such slow queries tend to be the result of some bad setup (config, JVM...) Otis -- Sematext is hiring -- http://sematext.com/about/jobs.html?mls Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR ----- Original Message ---- > From: bharath venkatesh <bharathv6.proj...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Tue, November 10, 2009 10:30:49 AM > Subject: understanding how solr/lucene handles a select query (to analyze > where solr/lucene is taking time ) > > Hi, > As mentioned in my previous post > , > we are experiencing a delay (latency ) for 15 % of the request to solr . > delay is about 2-4 sec sometimes it even reaches 10 sec (noticed from apache > tomcat logs where solr is running , so internal network issue ruled out). > So to fix the roblem we need to analyze where solr/lucene is taking time , > for that we need to understand how solr/lucene handles a select query > (what are the methods being used ) . is there any doc or link which > explains the same in detail ? . We are planning to change the source code > to log the time each method takes while solr handles a request so that we > can analyze where solr/lucene is taking time. I am not sure if this is the > right way (unless if this is the only way ) . Is there any other way to > analyze where solr/lucene is taking time ? > > so we need to know two things : > 1.how solr/lucene handles a select query (link or doc will do ) ? > 2. any way to anaylse where solr/lucene is taking time ? > > Thanks in Advance, > Bharath