Absolute URI (absoluteuri)
Description
You can apply this operation either as a Filter or Create field operation:
Filter | Retrieves only absolute URIs from a specified field. |
---|---|
Create field | Creates a Boolean field that shows true if a given URI is absolute. |
What is an absolute URI?
An absolute URI is a URI with no fragment component. Absolute URIs typically take the form protocol://domain/path. For example, http://www.devo.com/resources is an absolute URI.
How does it work in the search window?
Select Filter / Create field in the search window toolbar, then select the Absolute URI operation. You need to specify one argument:
Argument | Data type |
---|---|
URI mandatory | string |
If you use the Create field operation, the data type of the values in the new field is boolean (true or false).
Example
In the demo.ecommerce.data
table, we want to get only the events where the URIs in the referralUri field are absolute. To do it, we will apply a Filter using the Absolute URI operation.
The arguments needed for the filter are:
URI - referralUri field
Click Filter data.
Click Create field and follow the same steps to add a new Boolean field that shows true when the URIs in the referralUri field is absolute.
How does it work in LINQ?
Use the operator where
... to apply the Filter operation and select
... as
... to apply the Create field operation. This is the syntax for the Absolute URI operation:
absoluteuri(string)
Examples
You can copy the following LINQ script and try the above example on the demo.ecommerce.data
table:
from demo.ecommerce.data
where absoluteuri(referralUri)
And this is the same example using the Create field operation:
from demo.ecommerce.data
select absoluteuri(referralUri) as absolute_uris