Hi,
  Thanks Yonik.  That fixed that.  I would be useful to change one of the
existing dismax query types in  the default solrconfig.xml to use this new
syntax (Especially since DisMaxRequestHandler is being deprecared.)

Thanks again...Tom

On Wed, Jun 4, 2008 at 11:19 AM, Yonik Seeley <[EMAIL PROTECTED]> wrote:

> On Wed, Jun 4, 2008 at 11:11 AM, Tom Morton <[EMAIL PROTECTED]> wrote:
> >   I wanted to use the new dismax support for more like this described in
> > SOLR-295 <https://issues.apache.org/jira/browse/SOLR-295> but can't even
> get
> > the new syntax for dismax to work (described in
> > SOLR-281<https://issues.apache.org/jira/browse/SOLR-281>).
> > Any ideas if this functionality works?
> >
> > Here's the relevant part of my solr config,
> >
> >  <requestHandler name="/genre" class="solr.StandardRequestHandler"
> > defType="dismax">
>
> defType is just another parameter and should appear in the defaults
> section below.
> -Yonik
>
> >    <lst name="defaults">
> >     <str name="echoParams">explicit</str>
> >     <float name="tie">0.01</float>
> >     <str name="qf">
> >        relatedExact^2 genre^0.5
> >     </str>
> >     <int name="ps">100</int>
> >     <str name="q.alt">*:*</str>
> >    </lst>
> >  </requestHandler>
> >
> > Example query:
> >
> http://localhost:13280/solr/genre?indent=on&version=2.2&q=terrence+howard&start=0&rows=10&fl=*%2Cscore&wt=standard&debugQuery=on&explainOther=&hl.fl=
> >
> > Debug output: (I would expect to see dismax scoring)
> >
> > <str name="Contributor8843">
> > 11.151003 = (MATCH) sum of:
> >  6.925395 = (MATCH) weight(name:terrence in 63941), product of:
> >    0.7880709 = queryWeight(name:terrence), product of:
> >      10.0431795 = idf(docFreq=234, numDocs=1988249)
> >      0.07846827 = queryNorm
> >    8.787782 = (MATCH) fieldWeight(name:terrence in 63941), product of:
> >      1.0 = tf(termFreq(name:terrence)=1)
> >      10.0431795 = idf(docFreq=234, numDocs=1988249)
> >      0.875 = fieldNorm(field=name, doc=63941)
> >  4.2256074 = (MATCH) weight(name:howard in 63941), product of:
> >    0.6155844 = queryWeight(name:howard), product of:
> >      7.84501 = idf(docFreq=2116, numDocs=1988249)
> >      0.07846827 = queryNorm
> >    6.8643837 = (MATCH) fieldWeight(name:howard in 63941), product of:
> >      1.0 = tf(termFreq(name:howard)=1)
> >      7.84501 = idf(docFreq=2116, numDocs=1988249)
> >      0.875 = fieldNorm(field=name, doc=63941)
> >
> >
> > Here's my build info:
> > Solr Specification Version: 1.2.2008.06.02.15.21.48
> > Solr Implementation Version: 1.3-dev 662524M - tsmorton - 2008-06-02
> > 15:21:48
> >
> > Is this feature now broken or does it look like my config is wrong?
> >
> > Thanks...Tom
> >
>

Reply via email to