AQL: Query using secondary index

secondary
index

#1

Is it possible to query a record using secondary index?

Something like this, but except using secondary indexes:

        SELECT foo, bar FROM test.demo WHERE PK = 'key1'

I don’t see any examples in the AQL docs or in the help section of AQL. I am assuming this is possible since the secondary indexes have a ‘RW’ state.


#2

The section on “Filtering on Indexed Bins” http://www.aerospike.com/docs/tools/aql/querying_records.html#filtering-on-indexed-bins clarifies this.