danielmewes / php-rql

A PHP client driver for the RethinkDB query language (ReQL).
http://php-rql.dnsalias.net/
339 stars 60 forks source link

Compound Indexes #120

Closed rclations closed 8 years ago

rclations commented 8 years ago

Are compound indexes supported? https://rethinkdb.com/docs/secondary-indexes/javascript/

I assumed if the standard getAll was r\table('marvel')->getAll('man_of_steel', array('index' =>'code_name'))->run($conn) then a compound index would work like r\table('marvel')->getAll(array('dark_night', 'man_of_steel'), array('index' =>'code_name'))->run($conn)

but it doesn't appear to be working

rclations commented 8 years ago

nvm, works great!

danielmewes commented 8 years ago

Yes compound indexes are supported. How did you create the index?

danielmewes commented 8 years ago

Ah :-)