On Jan 20, 2009, at 5:28 AM, Erik Hatcher wrote:
On Jan 20, 2009, at 12:10 AM, prerna07 wrote:
below mentioned fq tag gives me error
<str Name = fq>dateField:[NOW-45DAYS TO NOW]^1.0 DateField:[NOW TO
NOW+45DAYS]^1.0</str>
What error did you get? You've got dateField/DateField as two
different cases, which would give a parse exception if one or both
of those didn't exist in your schema. Other than that, the syntax
itself looks fine. Of course boosting by ^1.0 isn't quite the
number you'll want to use.
Oops... I misspoke... putting a boosting query like this into fq isn't
going to help. fq (filter query) doesn't factor into the scoring. So
you'll either need to SHOULD/OR include that clause into your main
standard query, or if you're using dismax factor it into a bq
(boosting query) parameter.
Erik