Namespace filter

This namespace provides functions to create secondary index (SI) filter predicates for use in query commands via the Client#query command.

Query

const Aerospike = require('aerospike')
const Context = Aerospike.cdt.Context

Aerospike.connect().then(async (client) => {
// find any records that have a recent location within 1000m radius of the specified coordinates
let geoFilter = Aerospike.filter.geoWithinRadius('recent', 103.8, 1.305, 1000, Aerospike.indexType.LIST, new Context().addListIndex(0))
let query = client.query('test', 'demo')
query.where(geoFilter)

let results = await query.results()
for (let record in results) {
console.log(record.bins.recent)
}
client.close()
})

Index

Enumerations

Classes

Functions

MMNEPVFCICPMFPCPTTAAATR