Looks good on a quick glance. There are a couple of things... 1> there's no need for the "qt" param _if_ you specify the name as "/partItemNoSearch", just use blahblah/solr/partItemNoSearch There's a JIRA about when/if you need at. Either will do, it's up to you which you prefer.
2> I'd consider moving the sort from the "appends" section to the "defaults" section on the theory that you may want to override sorting sometime. 3> Simple way to see the effects of this is to simply append &debugQuery=on to your URL. You'll see the results of the query, including the parsed results. It's a little hard to read, but you should be seeing your search terms spread across all three fields. Best Erick On Thu, Apr 12, 2012 at 2:06 PM, geeky2 <gee...@hotmail.com> wrote: > hello all, > > i just want to check to make sure i have this right. > > i was reading on this page: http://wiki.apache.org/solr/ExtendedDisMax, > thanks to shawn for educating me. > > *i want the user to be able to fire a requestHandler but search across > multiple fields (itemNo, productType and brand) WITHOUT them having to > specify in the query url what fields they want / need to search on* > > this is what i have in my request handler > > > <requestHandler name="partItemNoSearch" class="solr.SearchHandler" > default="false"> > <lst name="defaults"> > <str name="defType">edismax</str> > <str name="echoParams">all</str> > <int name="rows">5</int> > *<str name="qf">itemNo^1.0 productType^.8 brand^.5</str>* > <str name="q.alt">*:*</str> > </lst> > <lst name="appends"> > <str name="sort">rankNo asc, score desc</str> > </lst> > <lst name="invariants"> > <str name="facet">false</str> > </lst> > </requestHandler> > > this would be an example of a single term search going against all three of > the fields > > http://bogus:bogus/somecore/select?qt=partItemNoSearch&q=*dishwasher*&debugQuery=on&rows=100 > > this would be an example of a multiple term search across all three of the > fields > > http://bogus:bogus/somecore/select?qt=partItemNoSearch&q=*dishwasher > 123-xyz*&debugQuery=on&rows=100 > > > do i understand this correctly? > > thank you, > mark > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/searching-across-multiple-fields-using-edismax-am-i-setting-this-up-right-tp3906334p3906334.html > Sent from the Solr - User mailing list archive at Nabble.com.