I am using the same setup (solrconfig.xml and schema.xml) as stated in my prior message: http://lucene.472066.n3.nabble.com/DirectSolrSpellChecker-vastly-varying-spellcheck-QTime-times-tt4057176.html#a4057389 I am using SOLR 4.2.1 . Just wanted to report something wierd that I am seeing and would like to find out if anyone else is seeing this behavior. Since I don't understand the details of what is happening, I'd like to know why the change in behavior and if we can do anything to get better QTime upfront?
I see a change in behavior when running queries against the server due to which the QTime also changes. QUERY: ?spellcheck=true &spellcheck.q=cucoo's+nest &df=spell &fq=.... Its the same every time and I believe moot. Here is what I have to do: 1. Run the query. 2. Run the same query with spellcheck=false 3. Run the original query (spellcheck=true) QTime from each of the above stages: 1. 40ms (multiple runs with spellcheck=true.) 2. 10ms (spellcheck = false is run just once) 3. 20ms (after changing back to spellcheck=true again and running multiple times.) Cache details at each of the above times: 1. filterCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=1024, initialSize=512, minSize=921, acceptableSize=972, cleanupThread=false, autowarmCount=128, regenerator=org.apache.solr.search.SolrIndexSearcher$2@7ce3d64e) src: $URL: https:/?/?svn.apache.org/?repos/?asf/?lucene/?dev/?branches/?lucene_solr_4_2/?solr/?core/?src/?java/?org/?apache/?solr/?search/?FastLRUCache.java $ stats: lookups: Was: 30, Now: 35, Delta: 5 hits: Was: 25, Now: 30, Delta: 5 hitratio: Was: 0.83, Now: 0.85 inserts: 5 evictions: 0 size: 5 warmupTime: 0 cumulative_lookups: Was: 30, Now: 35, Delta: 5 cumulative_hits: Was: 25, Now: 30, Delta: 5 cumulative_hitratio: Was: 0.83, Now: 0.85 cumulative_inserts: 5 cumulative_evictions: 0 queryResultCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=40960, initialSize=10240, minSize=36864, acceptableSize=38912, cleanupThread=false, autowarmCount=2560, regenerator=org.apache.solr.search.SolrIndexSearcher$3@520adaf0) src: $URL: https:/?/?svn.apache.org/?repos/?asf/?lucene/?dev/?branches/?lucene_solr_4_2/?solr/?core/?src/?java/?org/?apache/?solr/?search/?FastLRUCache.java $ stats: lookups: Was: 8, Now: 10, Delta: 2 hits: Was: 3, Now: 4, Delta: 1 hitratio: Was: 0.37, Now: 0.40 inserts: Was: 5, Now: 6, Delta: 1 evictions: 0 size: Was: 6, Now: 7, Delta: 1 warmupTime: 0 cumulative_lookups: Was: 8, Now: 10, Delta: 2 cumulative_hits: Was: 3, Now: 4, Delta: 1 cumulative_hitratio: Was: 0.37, Now: 0.40 cumulative_inserts: Was: 5, Now: 6, Delta: 1 cumulative_evictions: 0 CACHE 2 CORE HIGHLIGHTING OTHER QUERYHANDLER 3 UPDATEHANDLER Watch Changes Refresh Values 2. filterCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=1024, initialSize=512, minSize=921, acceptableSize=972, cleanupThread=false, autowarmCount=128, regenerator=org.apache.solr.search.SolrIndexSearcher$2@7ce3d64e) src: $URL: https:/?/?svn.apache.org/?repos/?asf/?lucene/?dev/?branches/?lucene_solr_4_2/?solr/?core/?src/?java/?org/?apache/?solr/?search/?FastLRUCache.java $ stats: lookups: Was: 35, Now: 40, Delta: 5 hits: Was: 30, Now: 35, Delta: 5 hitratio: Was: 0.85, Now: 0.87 inserts: 5 evictions: 0 size: 5 warmupTime: 0 cumulative_lookups: Was: 35, Now: 40, Delta: 5 cumulative_hits: Was: 30, Now: 35, Delta: 5 cumulative_hitratio: Was: 0.85, Now: 0.87 cumulative_inserts: 5 cumulative_evictions: 0 queryResultCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=40960, initialSize=10240, minSize=36864, acceptableSize=38912, cleanupThread=false, autowarmCount=2560, regenerator=org.apache.solr.search.SolrIndexSearcher$3@520adaf0) src: $URL: https:/?/?svn.apache.org/?repos/?asf/?lucene/?dev/?branches/?lucene_solr_4_2/?solr/?core/?src/?java/?org/?apache/?solr/?search/?FastLRUCache.java $ stats: lookups: Was: 10, Now: 11, Delta: 1 hits: 4 hitratio: Was: 0.40, Now: 0.36 inserts: Was: 6, Now: 7, Delta: 1 evictions: 0 size: Was: 7, Now: 8, Delta: 1 warmupTime: 0 cumulative_lookups: Was: 10, Now: 11, Delta: 1 cumulative_hits: 4 cumulative_hitratio: Was: 0.40, Now: 0.36 cumulative_inserts: Was: 6, Now: 7, Delta: 1 cumulative_evictions: 0 CACHE 2 CORE HIGHLIGHTING OTHER QUERYHANDLER 3 UPDATEHANDLER Watch Changes Refresh Values 3. filterCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=1024, initialSize=512, minSize=921, acceptableSize=972, cleanupThread=false, autowarmCount=128, regenerator=org.apache.solr.search.SolrIndexSearcher$2@7ce3d64e) src: $URL: https:/?/?svn.apache.org/?repos/?asf/?lucene/?dev/?branches/?lucene_solr_4_2/?solr/?core/?src/?java/?org/?apache/?solr/?search/?FastLRUCache.java $ stats: lookups: 40 hits: 35 hitratio: 0.87 inserts: 5 evictions: 0 size: 5 warmupTime: 0 cumulative_lookups: 40 cumulative_hits: 35 cumulative_hitratio: 0.87 cumulative_inserts: 5 cumulative_evictions: 0 queryResultCache class: org.apache.solr.search.FastLRUCache version: 1.0 description: Concurrent LRU Cache(maxSize=40960, initialSize=10240, minSize=36864, acceptableSize=38912, cleanupThread=false, autowarmCount=2560, regenerator=org.apache.solr.search.SolrIndexSearcher$3@520adaf0) src: $URL: https:/?/?svn.apache.org/?repos/?asf/?lucene/?dev/?branches/?lucene_solr_4_2/?solr/?core/?src/?java/?org/?apache/?solr/?search/?FastLRUCache.java $ stats: lookups: Was: 13, Now: 15, Delta: 2 hits: Was: 6, Now: 8, Delta: 2 hitratio: Was: 0.46, Now: 0.53 inserts: 7 evictions: 0 size: 8 warmupTime: 0 cumulative_lookups: Was: 13, Now: 15, Delta: 2 cumulative_hits: Was: 6, Now: 8, Delta: 2 cumulative_hitratio: Was: 0.46, Now: 0.53 cumulative_inserts: 7 cumulative_evictions: 0 Thanks. -- Sandeep -- View this message in context: http://lucene.472066.n3.nabble.com/spellcheck-change-in-behavior-and-QTime-tp4058014.html Sent from the Solr - User mailing list archive at Nabble.com.