Standard searches your default field (specified in schema.xml).
DisMax searches fields you specify in DisMax config.
Yours has:
  text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4

But there are not your real fields.  Change that to your real fields in qf, pf 
and other parts of DisMax config and things should start working.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Ben Lavender <blaven...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Thursday, March 26, 2009 4:02:58 PM
> Subject: Re: dismax query not working with 1.4
> 
> 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:
>   
>     
>     dismax
>     explicit
>     
>   
> 
> And the one from my nightly is:
>   
>     
>     dismax
>     explicit
>     0.01
>     
>         text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
>     
>     
>         text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
>     
>     
>         ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3
>     
>     
>         id,name,price,score
>     
>     
>         2<-1 5<-2 6<90%
>     
>     100
>     *:*
>     
>     text features name
>     
>     0
>     
>     name
>     regex 
>     
>   
> 
> 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 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 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