N1QL querying views

Hi Tony,

Currently, N1QL can create views and use them as indexes:

CREATE INDEX idx ON mybucket(expr1, …) USING VIEW;

This is roughly equivalent to using the N1QL-oriented GSI indexes. The difference is in the underlying architecture (hash-partitioned vs. global index).

Currently, N1QL cannot query pre-existing or manually created views. This is in a future backlog.