I’m testing Aerospike with PHP. Starting from the examples given in the doc, I can create a connection to my DB, choose my namespace, then insert some data (1 row) and retrieve it with the primary key ; so far so good.
At that stage, I’d like to add a secondary index.
> $status = $db->createIndex("myNS", "mySet", "username", Aerospike::INDEX_TYPE_STRING, "username_idx");
But when I run it (command-line, “php test.php”), I get this:
PHP Fatal error: Call to undefined method Aerospike::createIndex()
What am I doing wrong?