Hi everyone,
I've been trying to add a date based boost to my queries. I have a field like:
<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"
precisionStep="6" positionIncrementGap="0"/>
<field name="datetime" type="tdate" indexed="true" stored="true"
required="true" />
When I look at the datetime field in the solr schema browser I can see that
there are 9051 distinct dates.
When I try to add the parameter to my query like: bf=ord(datetime) (on a dismax
query) I always get 9051 as the result of the function. I see this in the debug
data:
1698.6041 = (MATCH) FunctionQuery(top(ord(datetime))), product of:
9051.0 = 9051
1.0 = boost
0.18767032 = queryNorm
It is exactly the same for every result, even though each result has a
different value for datetime.
Does anyone have any suggestions as to why this could be happening? I have done
extensive googling with no luck.
Thanks,
Kallin Nagelberg.