class searx.result_types._base.MainResult(title: str = '', content: str = '', img_src: str = '', thumbnail: str = '', priority: ~typing.Literal['', 'high', 'low'] = '', engines: set[str] = <factory>, open_group: bool = False, close_group: bool = False, positions: list[int] = <factory>, score: float = 0, category: str = '', *, url: str | None = None, template: str = 'default.html', engine: str | None = '', parsed_url: ~urllib.parse.ParseResult | None = None)[source]

Base class of all result types displayed in area main results.

title: str

Link title of the result item.

content: str

Extract or description of the result item

img_src: str

URL of a image that is displayed in the result item.

thumbnail: str

URL of a thumbnail that is displayed in the result item.

priority: Literal['', 'high', 'low']

The priority can be set via Hostnames, for example.

engines: set[str]

In a merged results list, the names of the engines that found this result are listed in this field.

normalize_result_fields()[source]

Normalize fields url and parse_sql.

  • If field url is set and field parse_url is unset, init parse_url from field url. The url field is initialized with the resulting value in parse_url, if url and parse_url are not equal.

  • example.com/path/ and example.com/path are equivalent and are normalized to example.com/path.