class searx.result_types._base.MainResult(title: str = '', content: str = '', img_src: str = '', thumbnail: str = '', publishedDate: ~datetime.datetime | None = None, pubdate: str = '', length: ~time.struct_time | None = None, views: str = '', author: str = '', metadata: 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.

publishedDate: datetime | None

The date on which the object was published.

pubdate: str

String representation of MainResult.publishedDate

length: struct_time | None

Playing duration in seconds.

views: str

View count in humanized number format.

author: str

Author of the title.

metadata: str

Miscellaneous metadata.

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.