IntervalQuery

constructor(field: String, intervalsSource: IntervalsSource)

Create a new IntervalQuery

Parameters

field

the field to query

intervalsSource

an IntervalsSource to retrieve intervals from


constructor(field: String, intervalsSource: IntervalsSource, pivot: Float)

Create a new IntervalQuery with a scoring pivot

Parameters

field

the field to query

intervalsSource

an IntervalsSource to retrieve intervals from

pivot

the sloppy frequency value at which the score will be 0.5, must be within (0, +Infinity)


constructor(field: String, intervalsSource: IntervalsSource, pivot: Float, exp: Float)

Create a new IntervalQuery with a scoring pivot and exponent

Parameters

field

the field to query

intervalsSource

an IntervalsSource to retrieve intervals from

pivot

the sloppy frequency value at which the score will be 0.5, must be within (0, +Infinity)

exp

exponent, higher values make the function grow slower before 'pivot' and faster after 'pivot', must be in (0, +Infinity)