If you want the two request handlers to have the same behavior, but just the velocity stuff be different, than remove everything except echoParams, wt, v.template, v.base_dir, v.layout, (and title if your templates are using it, the default does).
You can see which query parser is being used by adding debug=true to the request (or debugQuery=true, legacy param). Erik On Jun 14, 2014, at 1:47 PM, O. Olson <olson_...@yahoo.it> wrote: > Thank you Erik. I tried /products?q=hp|lync&wt=xml and I show no results i.e. > numFound="0", so I think there is something wrong. You are correct, that the > VRW is not the problem but the Query Parser. Could you please let me know > how to determine the query parser? > > For most part I have not changed these request handlers from the Solr > examples. The Request Handler that uses Apache Velocity looks like: > > <requestHandler name="/products" class="solr.SearchHandler"> > <lst name="defaults"> > <str name="echoParams">explicit</str> > <str name="wt">velocity</str> > <str name="v.template">browse</str> > <str name="debugQuery">true</str> > <str name="v.base_dir">VMTemplates</str> > <str name="v.layout">layout</str> > <str name="title">Solritas</str> > <str name="defType">edismax</str> > <str name="qf"> > text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 > title^10.0 description^5.0 keywords^5.0 author^2.0 > resourcename^1.0 > </str> > <str name="df">text</str> > <str name="mm">100%</str> > <str name="q.alt">*:*</str> > <str name="rows">10</str> > <str name="fl">*,score</str> > <str name="mlt.qf"> > text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 > title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0 > </str> > <str > name="mlt.fl">text,features,name,sku,id,manu,cat,title,description,keywords,author,resourcename</str> > <int name="mlt.count">3</int> > <str name="facet">on</str> > <str name="facet.field">CategoryID</str> > <str name="spellcheck">on</str> > <str name="spellcheck.extendedResults">false</str> > <str name="spellcheck.count">5</str> > <str name="spellcheck.alternativeTermCount">2</str> > <str name="spellcheck.maxResultsForSuggest">5</str> > <str name="spellcheck.collate">true</str> > <str name="spellcheck.collateExtendedResults">true</str> > <str name="spellcheck.maxCollationTries">5</str> > <str name="spellcheck.maxCollations">3</str> > </lst> > <arr name="last-components"> > <str>spellcheck</str> > </arr> > </requestHandler> > > And the regular XML handler looks like: > > <requestHandler name="/search" > class="org.apache.solr.handler.component.SearchHandler"> > <lst name="defaults"> > <str name="echoParams">explicit</str> > </lst> > </requestHandler> > > Does this show which is the Query Parser? I can post more of my > solrconfig.xml if necessary. > > I am curious where the Query Parser hands over the parameters to the Solr > engine that would be common irrespective of Request Handler i.e. I am trying > to put debugging statements into the common code so that these can dump out > intermediate results to the log. > > Thanks again Erik. > O. O. > > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Debug-different-Results-from-different-Request-Handlers-tp4141804p4141859.html > Sent from the Solr - User mailing list archive at Nabble.com.