repeat

Purpose

Finds documents that contain arguments repeated one or more times.

Syntax

repeat([min_repeats, [max_repeats,]] term)

Arguments

The first two optional arguments min_repeats and max_repeats set the minimum and maximum number of repetitions respectively.

If the parameter max_repeats is absent, the function matches all sequences, containing no less than min_repeats of the argument. If both parameters are absent, the function matches sequences, containing any number of repetitions of the argument.

The function also supports optional named parameters:

  • allow_punct:=yes/no allows or prohibits punctuation between arguments (set to "no" by default);

  • allow_space:=yes/no allows or prohibits spaces between arguments (set to "no" by default);

  • match:=range matches text range starting from the first found term and ending with the last found term.

Returned Value

Documents matching the query.

Examples

repeat(partofspeech(adjective)) matches "technical service", "concomitant medical products", "multiple solid vertical lines", "recurrent left middle cerebral artery stenosis" etc.

repeat(2, 3, partofspeech(adjective)) matches "concomitant medical products", "multiple solid vertical lines", but not "technical service".

repeat(3, 3, partofspeech(adjective)) matches "multiple solid vertical lines", but not "critical, reliable, real-time data".

repeat(3, 3, partofspeech(adjective), allow_punct:=yes) matches "multiple solid vertical lines" and "critical, reliable, real-time data".

repeat(3, partofspeech(adjective)) matches "multiple solid vertical lines", "recurrent left middle cerebral artery stenosis" etc.