I do not have a qf set; this is the query generated by the admin interface:
dismax:
select?indent=on&version=2.2&q=test&start=0&rows=10&fl=*%2Cscore&qt=dismax&wt=standard&explainOther=&hl.fl=

standard:
select?indent=on&version=2.2&q=test&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=

dismax has no results, standard has 30.

I don't see a requirement that qf be defined on
http://wiki.apache.org/solr/DisMaxRequestHandler; am I missing
something?

The query responses are the same with both the application-specific
and default solrconfig.xml's.  The application definition for dismax
is:
  <requestHandler name="dismax" class="solr.SearchHandler">
    <lst name="defaults">
     <str name="defType">dismax</str>
     <str name="echoParams">explicit</str>
    </lst>
  </requestHandler>

And the one from my nightly is:
  <requestHandler name="dismax" class="solr.SearchHandler" >
    <lst name="defaults">
     <str name="defType">dismax</str>
     <str name="echoParams">explicit</str>
     <float name="tie">0.01</float>
     <str name="qf">
        text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
     </str>
     <str name="pf">
        text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
     </str>
     <str name="bf">
        ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3
     </str>
     <str name="fl">
        id,name,price,score
     </str>
     <str name="mm">
        2&lt;-1 5&lt;-2 6&lt;90%
     </str>
     <int name="ps">100</int>
     <str name="q.alt">*:*</str>
     <!-- example highlighter config, enable per-query with hl=true -->
     <str name="hl.fl">text features name</str>
     <!-- for this field, we want no fragmenting, just highlighting -->
     <str name="f.name.hl.fragsize">0</str>
     <!-- instructs Solr to return the field itself if no query terms are
          found -->
     <str name="f.name.hl.alternateField">name</str>
     <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
    </lst>
  </requestHandler>

So there's no particular mention of any fields from schema.xml in
dismax, but the standard works without that.

Thanks for the responses,
Ben

On Thu, Mar 26, 2009 at 2:11 PM, Matt Mitchell <goodie...@gmail.com> wrote:
> Do you have qf set? Just last week I had a problem where no results were
> coming back, and it turned out that my qf param was empty.
>
> Matt
>
> On Thu, Mar 26, 2009 at 2:30 PM, Ben Lavender <blaven...@gmail.com> wrote:
>
>> Hello,
>>
>> I'm using the March 18th 1.4 nightly, and I can't get a dismax query
>> to return results.  The standard and partitioned query types return
>> data fine.  I'm using jetty, and the problem occurs with the default
>> solrconfig.xml as well as the one I am using, which is the Drupal
>> module, beta 6.  The problem occurs in the admin interface for solr,
>> though, not just in the end application.
>>
>> And...that's it?  I don't know what else to say or offer other than
>> dismax doesn't work, and I'm not sure where else to go to
>> troubleshoot.  Any ideas?
>>
>> Ben
>>
>

Reply via email to