Git Product home page Git Product logo

Comments (3)

BrianNichols avatar BrianNichols commented on September 26, 2024

Unfortunately, multiple filters are still not support by the server. The client was written with the assumption that multiple filters would eventually be supported, but it did not happen.

There is a javadoc comment on Statement.setFilters():

    /**
     * Set optional query filters.
     * Currently, only one filter is allowed by the server on a secondary index lookup.
     * If multiple filters are necessary, see QueryFilter example for a workaround.
     * QueryFilter demonstrates how to add additional filters in an user-defined 
     * aggregation function. 
     */
    public void setFilters(Filter... filters) {
        this.filters = filters;
    }

from aerospike-client-java.

traviskaufman avatar traviskaufman commented on September 26, 2024

hmm do any of the other aerospike clients support this? I'd be happy to work on the feature for the Java client. We use Aerospike extensively and this functionality would really help simplify some of our code.

from aerospike-client-java.

wchu-citrusleaf avatar wchu-citrusleaf commented on September 26, 2024

This can alternatively be done currently on the server side via the aggregation framework. See
the example: http://www.aerospike.com/community/labs/query_multiple_filters.html

from aerospike-client-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.