lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Yadao <josesya...@gmail.com>
Subject edismax request handler doesn't use defined qf
Date Wed, 19 Dec 2012 23:32:40 GMT
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
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

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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message