url
A web address.
At a glance
- Stored as: the value itself, written inline wherever it is used.
- Search: full-text (
~*); as one identifier, soilikepatterns match any part of it and full-text search sees it as one word.
Writing
Write the address as text: https://example.com/forms/intake. It is checked when it
is written and stored in a normal form:
- An address without a scheme is read as
https:example.com/formsandwww.example.combecomehttps://example.com/formsandhttps://www.example.com. - The scheme and the host are lowercased; the path keeps its case. A trailing
/is dropped, sohttps://Example.com/Forms/is stored ashttps://example.com/Forms. - A port, a query string and a
#fragmentare kept. - The host is a domain name or a public IP address. A private or local address
(
192.168.1.10,127.0.0.1,localhost) is refused, because whatever fetches the address must not reach a private network.
Besides http and https, links to stored files are accepted: s3, gs, wasb,
wasbs, ftp, ftps and file. Their bucket or host is lowercased and their path
is kept exactly. Any other scheme, mailto: and tel: included, is refused with a message that
lists these.
Written as
A JSON string whose schema format is url.
Reading
You read back the stored, normalized address.
Querying
A value compared with = or in is normalized the same way first, so
example.com/forms/intake finds https://example.com/forms/intake. A like or ilike
pattern is used as written.
Document | source_url = "example.com/forms/intake" | select id, name
To find part of an address, such as every page on one site, use ilike. It matches
the text exactly, where a word search may not, and checks every row in scope:
Document | source_url ilike "%example.com%" | select id, source_url | limit 20
Every operator is in the HQL reference.
Operations
Through the dtypes resource: