With N1QL, can I create an index wheeere foo > bar?

Yes, you can issue a CREATE INDEX statement exactly as you have it.

1 Like