Open topic with navigation

# BIASDATE

The `BIASDATE` field operator works in a similar way to the `BIAS` field operator. It allows you to bias the score of results at query time according to the proximity of the specified field to a particular date.

Specify `BIASDATE` in the format:

    BIASDATE{optimumDate,range,percentage}:yourFields

where:

`optimumDate` | is the date that the field must contain to increase or decrease the result weight by the maximum `percentage`. See Date formats for a list of the available date formats.
`range` | is a positive value that determines the range in seconds of the specified optimum. If the specified field contains a value that is in the range (`optimum` – `range`) to (`optimum` + `range`), the result weight is increased or decreased according to the specified `percentage`.
`percentage` | is a percentage in the range –100 to 100. If the value of the specified field is within the specified range, the score of the result increases or decreases according to how close the value is to the specified optimum. When you set `Absweight` to `True`, this is the absolute value by which to boost the weight, and it is then not limited by +/– 100.
`yourFields` | are one or more fields. A document has its score boosted if it contains one of these fields, and if this field contains a date that falls within the specified range of the optimum date. Separate multiple fields with colons (`:`). There must be no space before or after a colon.

For example:

-     FieldText=BIASDATE{1/12/2008,864000,10}:DATE

  A document whose `DATE` field value is within a range of 10 days (864000 seconds) either side of 1/12/2008 has its weight increased on a linear scale from 10 percent if the date is 1/12/2008, to 0 percent if the date is 20/11/2008 or 11/12/2008.

-     FieldText=BIASDATE{1/12/2008,86400,-10}:DATE

  A document whose `DATE` field value is within a range of 10 days (864000 seconds) either side of 1/12/2008 has its weight decreased on a linear scale from –10 percent if the date is 1/12/2008, to 0 percent if the date is 20/11/2008 or 11/12/2008.

© 2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm