Package com.senseidb.search.client.req.filter.Filter

Examples of com.senseidb.search.client.req.filter.Filter.AndOr


    public static Ids ids(List<String> values, List<String> excludes) {
        return new Ids(values, excludes);
    }

    public static AndOr and(Filter... filters) {
        return new AndOr(Arrays.asList(filters), Operator.and);
    }
View Full Code Here


    public static AndOr and(Filter... filters) {
        return new AndOr(Arrays.asList(filters), Operator.and);
    }

    public static AndOr or(Filter... filters) {
        return new AndOr(Arrays.asList(filters), Operator.or);
    }
View Full Code Here

        if (bean instanceof StringQuery) {
            JSONObject ret = (JSONObject) JsonSerializer.serialize(bean);
            return new JSONObject().put("query", ret);
        }
        if (bean instanceof AndOr) {
            AndOr andOr = (AndOr) bean;
            String operation = andOr.getOperation().name();

            List<JSONObject> filters = convertToJson(andOr.filters);
            return new JSONObject().put(operation, new JSONArray(filters));
        }
        if (bean instanceof BoolFilter) {
View Full Code Here

TOP

Related Classes of com.senseidb.search.client.req.filter.Filter.AndOr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.