URI host (urihost)
Extracts the URI host from a URI. See this article to learn more about URI syntax.
How does it work in the search window?
Select Create column in the search window toolbar, then select the URI host operation. You need to specify one argument:
|URI (mandatory) ||string|
The data type of the values in the new column is string.
We want to get the host of the URIs in our referralUri column. To do it, click Create column and select the URI host operation. The arguments needed are:
URI - referralUri column
Click Create column and you will see the following result:
How does it work in LINQ?
Use the operator
as... and add the operation syntax to create the new column. This is the syntax for the URI host operation:
You can copy the following LINQ script and try the above example on the
from demo.ecommerce.data select urihost(referralUri) as URI_host