# Executing UDF modules for bloom filter

**URL:** <https://discuss.aerospike.com/t/executing-udf-modules-for-bloom-filter/9889>\
**Category:** User Defined Functions (UDF)\
**Tags:** udf\
**Created:** [December 1, 2022, 10:35am UTC](https://discuss.aerospike.com/t/executing-udf-modules-for-bloom-filter/9889 "2022-12-01T10:35:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harsh\_chaurasiya](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/harsh_chaurasiya/32/1977_2.png) [@harsh\_chaurasiya](https://discuss.aerospike.com/u/harsh_chaurasiya)\
**Post date:** [December 1, 2022, 10:35am UTC](https://discuss.aerospike.com/t/executing-udf-modules-for-bloom-filter/9889/1 "2022-12-01T10:35:39Z")

</div>

I want to achieve the bloom filter feature on aerospike, so for that, I have used Lua scripting to create a UDF bloom filter , I have registered my udf modules on to the aerospike but now I am unable to access bloom filter methods inside the aerospike client and also using node module aerospike .

I don’t know what am I missing here.

Can someone will me with it.

I have the below modules for bloom filter .

SHOW MODULES ±-------------------±-------------------------------------------±------+ | filename | hash | type | ±-------------------±-------------------------------------------±------+ | “luaxxhash.lua” | “dccb4610b41b645dfa5ee01584a0868672d8034c” | “LUA” | | “bloom\_filter.lua” | “14f0c74bf011a4615d0b136b5cbcb087e62dcf51” | “LUA” | | “bloom.lua” | “9140de4eea2d881a4f6ea842dc79f1a806a5cdd6” | “LUA” | ±-------------------±-------------------------------------------±------+

what I have tried so far. I have installed the aerospike npm module and also connected it with the aerospike setup.

const result = await aerospikeClient.apply(key, ‘bloom’, ‘add’, [‘bin’, 1, {}])

---

<div class="post-metadata">

**Author:** ![neelp](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/neelp/32/1369_2.png) [@neelp](https://discuss.aerospike.com/u/neelp)\
**Post date:** [December 2, 2022, 5:27pm UTC](https://discuss.aerospike.com/t/executing-udf-modules-for-bloom-filter/9889/2 "2022-12-02T17:27:54Z")

</div>

What is the call returning? You may want to check the function apply() details in the API reference and the example code [here](https://docs.aerospike.com/apidocs/nodejs/client).
