The UID field is a unique identifier that can be used specifically to create SEO-friendly website URLs.
Here's how you would get the UID value from the retrieved document object.
<p> Page uid: <%= @document.uid =></p>