- 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.
- 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
andparse_sql
.If field
url
is set and fieldparse_url
is unset, initparse_url
from fieldurl
. Theurl
field is initialized with the resulting value inparse_url
, ifurl
andparse_url
are not equal.example.com/path/
andexample.com/path
are equivalent and are normalized toexample.com/path
.