Queries Views from N1QL

I’ve read several posts around creating a N1QL index against a view using the CREATE INDEX idx on bucket( ) USING VIEW; but I can’t find any solid examples of how to use this in practicality.

Do you have any links to a solid example where it shows the values emitted from the view, and how you integrate this into the WHERE clause of your N1QL query?