lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Stadler <cstadle...@hotmail.com>
Subject Question about dismax and score boost with date
Date Sun, 23 Oct 2011 20:40:11 GMT
Solr Specification Version: 1.4.0
Solr Implementation Version: 1.4.0 833479 - grantingersoll - 2009-11-06 
12:33:40
Lucene Specification Version: 2.9.1
Lucene Implementation Version: 2.9.1 832363 - 2009-11-03 04:37:25

<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true" 
precisionStep="6" positionIncrementGap="0"/>

<field name="created" type="tdate" multiValued="false" indexed="true" 
stored="false" omitNorms="true"  required="false" 
omitTermFreqAndPositions="true" />

I am using 'created' as the name of the date field.

My dates are being populated as such :
1980-01-01T00:00:00Z

Search handler (solrconfig) :

<requestHandler name="/dismax" class="solr.SearchHandler">
<lst name="defaults">
<str name="defType">dismax</str>
<str name="echoParams">explicit</str>
<str name="tie">0.1</str>
<str name="qf">name0^20000 other ^10000</str>
<str name="pf">name0^20000 other ^10000</str>
<str name="qs">3</str>
<str name="ps">3</str>
<str name="q.alt">*:*</str>
</lst>
</requestHandler>

----------------------------------------------

Query :

/solr/ftf/dismax/?q=libya
&debugQuery=off
&hl=true
&start=
&rows=10
----------------------------------------------

I am trying to factor in created to the SCORE. (boost) I have tried a 
million ways to do this, no success. I know the dates are populating 
correctly because I can sort by them. Can anyone help me implement date 
boosting with dismax under this scenario???

-Craig 


Mime
View raw message