Hi, 

We are facing issues while using dismaxrequesthandler for date fields. 

We have to define date fields in <str name="qf"> of solrConfig.xml. 

<str name="qf"> ......<other parameters>....
productPublicationDate_product_dt^1.0 </str> 

as soon as we add this in solrConfig.xml, dismax stops working for other
attributes. 

?q=searchterm&qt=dismaxrequest gives error:

"The request sent by the client was syntactically incorrect (Invalid Date
String:'searchTerm')."
This is because dismax request tries to search the term in all the
attributes defined in <qf> tag, Is there any way to avoid this search. 

Please suggest what should we do to solve the issue. 

SolrConfig.xml  Contents 

<requestHandler name="dismaxrequest" class="solr.DisMaxRequestHandler" > 
    <lst name="defaults"> 
          <!-- omp = Only More Popular -->
          <str name="spellcheck.onlyMorePopular">false</str>
          <!-- exr = Extended Results -->
          <str name="spellcheck.extendedResults">false</str>
          <!--  The number of suggestions to return -->
          <str name="spellcheck.count">10</str>
      
     <str name="echoParams">explicit</str> 
  
     <float name="tie">0.01</float> 
     <str name="qf">isbn10_product_s^1.0 isbn13_product_s^1.0
Index_Type_s^1.0 prdMainTitle_product_s^1.0 categoryIds_product_s^1.0
imprint_product_s^1.0 strapline_product_s^1.0 subject_product_s^1.0
prdPubDate_product_s^1.0 readBy_product_s^1.0 aluminator_product_s^1.0
editor_product_s^1.0 productType_product_s^1.0 authorLastName_product_s^1.0
edition_product_s^1.0 discipline_product_s^1.0 copyrightYear_product_s^1.0
courseId_course_s^1.0 indexType_course_s^1.0 courseType_course_s^1.0
courseJacketImage_course_s^1.0 sourceGroupName_course_s^1.0
subCompany_course_s^1.0 courseCodeSeq_course_s^1.0 discCode_course_s^1.0
displayName_course_s^1.0 programId_program_s^1.0 indexType_program_s^1.0
programType_program_s^1.0 groupNm_program_s^1.0 introText_program_s^1.0
programJacketImage_program_s^1.0 productPublicationDate_product_dt^1.0</str> 
        
     <str name="pf"> 
     
     </str> 
        <str name="bf"> 
        
        </str>
         <str name="bq">english^90 hindi^123 Glorious^2000 highlighting^10000000
maths^100 ab^12 erer^4545 </str>
     <str name="fl"> 
        *,score 
     </str> 
    </lst> 
     <arr name="last-components">
          <str>spellcheck</str>
    </arr>
  </requestHandler>


Thanks in advance

~Vikrant
Vikrant Shirbhate


-- 
View this message in context: 
http://www.nabble.com/Date-field-issue-within-DismaxrequestHandler--%7C-searchterm-is-invalid-date-field.-tp21526607p21526607.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to