It may not be using that request handler. You are using the "qt" parameter, but have you changed the compatibility setting to enable it? See the comments in solrconfig.

-- Jack Krupansky

-----Original Message----- From: Jose Yadao
Sent: Wednesday, December 19, 2012 8:44 PM
To: solr-user@lucene.apache.org
Subject: Re: edismax request handler doesn't use defined qf

Thanks but that didn't work.

Parsedquery doesn't show DisjunctionMaxQuery it's using the default field
of select
<str name="parsedquery">text:car</str>

On Thu, Dec 20, 2012 at 9:38 AM, Jack Krupansky <j...@basetechnology.com>wrote:

The white space is probably messing things up.

Change:


<str name="qf">
  features^1.0
</str>

to


<str name="qf">features^1.0</str>

It SHOULDN'T be a problem, but...

-- Jack Krupansky
-----Original Message----- From: Jose Yadao
Sent: Wednesday, December 19, 2012 6:32 PM
To: solr-user@lucene.apache.org
Subject: edismax request handler doesn't use defined qf


Hi,

I wanted to put the fields I want to be searched in qf but it looks like
edismax is not using it.
I have the ff request handler made for testing edismax, used the sample xml
to populate my solr 4.0

 <requestHandler name="test" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="echoParams">explicit</**str>
      <!-- Query settings -->
      <str name="defType">edismax</str>
      <str name="qf">
         features^1.0
      </str>
      <str name="rows">10</str>
      <str name="fl">*,score</str>
    </lst>
 </requestHandler>

when I go to http://localhost:8983/solr/**select?q=car&debugQuery=on&qt=**
testI'm <http://localhost:8983/solr/select?q=car&debugQuery=on&qt=testI'm>

expecting to see the hit on features field but instead I'm seeing

<str name="F8V7067-APL-KIT">
0.3777064 = (MATCH) weight(text:car in 0) [DefaultSimilarity], result of:
 0.3777064 = fieldWeight in 0, product of:
   1.0 = tf(freq=1.0), with freq of:
     1.0 = termFreq=1.0
   1.5108256 = idf(docFreq=2, maxDocs=5)
   0.25 = fieldNorm(doc=0)
</str>

Isn't this supposed to be the same as the ff request?
http://localhost:8983/solr/**select?q=car&debugQuery=on&**
defType=edismax&qf=features<http://localhost:8983/solr/select?q=car&debugQuery=on&defType=edismax&qf=features>

This gives me what I'm expecting
<str name="F8V7067-APL-KIT">
0.7554128 = (MATCH) weight(features:car in 0) [DefaultSimilarity], result
of:
 0.7554128 = fieldWeight in 0, product of:
   1.0 = tf(freq=1.0), with freq of:
     1.0 = termFreq=1.0
   1.5108256 = idf(docFreq=2, maxDocs=5)
   0.5 = fieldNorm(doc=0)
</str>


Please help, thanks.


Reply via email to