Search code examples
aerospike

AEROSPIKE_ERR_INDEX_NOT_FOUND - Python Client


The data is pulled from BigQuery, and we're certain that the interval exist.

Codes used:

client = aerospike.client(config).connect()

query = client.query('test', 'demo')

query.select('pickup', 'passenger_count')

# query.where(p.between('passenger_count',1,3))


def print_result(args):
    key, metadata, record = args
    print(record)

query.foreach(print_result)

enter image description here

enter image description here


Solution

  • This error means you do not have a secondary index defined for 'passenger_count'. Learn more here: https://www.aerospike.com/docs/operations/plan/capacity/secondary_indexes.html.