tablerow

Purpose

Finds documents containing arguments in one table row.

Syntax

tablerow()

tablerow(term_1, term_2,…​)

Arguments

The function accepts no required arguments.

The function also supports the following optional named parameters:

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

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

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

  • whole:=yes matches sentences made up only by the arguments listed in the query.

  • min_row_distance/max_row_distance/row_distance sets exact difference in positions between the first and the last argument of the sequence, min_row_distance sets minimum difference, max_row_distance sets maximum difference. Distance is calculated as the difference of row numbers of the last and the first coordinate of the match.

  • min_row_gap/max_row_gap/row_gap sets exact number of rows between arguments of the sequence, min_row_gap sets minimum number, max_row_gap sets maximum number.

Returned Value

Documents matching the query.

Examples

tablerow() returns the entire table row.

tablerow(Africa, number(), allow_punct:=no) returns a row containing the words "Africa" and a number.

tablerow(Africa , 2015, optional(Europe)) returns a row containing the words "Africa", 2015 and optionally Europe.

tablerow(A, B, max_row_distance:=3) returns A and B located in the same or no more than 3 adjacent table rows.

tablerow(A, B, row_distance:=1) returns A and B located in adjacent table rows.