Documentation
¶
Overview ¶
Package websearch holds what the search adapters share: the domain lists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainAllowed ¶
func DomainAllowed(raw string, opts ports.SearchOptions) bool
DomainAllowed says whether a result's URL passes the allowed and blocked domain lists. The engines are asked too (see WithSiteFilters), but not all of them honour every operator, so each result is checked again here.
func WithSiteFilters ¶
func WithSiteFilters(query string, opts ports.SearchOptions) string
WithSiteFilters is the query with site: operators for the domain lists, which most search engines understand.
Types ¶
This section is empty.