Examples of SpanTerm


Examples of com.senseidb.search.client.req.query.span.SpanTerm

                .serialize(bean, false);
        if (bean instanceof FieldAwareQuery) {
            defaultSerialization.remove("field");
            if (bean instanceof SpanTerm
                    && ((SpanTerm) bean).getBoost() == null) {
                SpanTerm spanTerm = (SpanTerm) bean;
                defaultSerialization = new JSONObject().put(
                        spanTerm.getField(), spanTerm.getValue());
            } else {
                defaultSerialization = new JSONObject().put(
                        ((FieldAwareQuery) bean).getField(),
                        defaultSerialization);
            }
View Full Code Here

Examples of com.senseidb.search.client.req.query.span.SpanTerm

        return new com.senseidb.search.client.req.query.span.SpanOr(
                Arrays.asList(clauses), boost);
    }

    public static SpanTerm spanTerm(String field, String value) {
        return new SpanTerm(field, value, null);
    }
View Full Code Here

Examples of com.senseidb.search.client.req.query.span.SpanTerm

    public static SpanTerm spanTerm(String field, String value) {
        return new SpanTerm(field, value, null);
    }

    public static SpanTerm spanTerm(String field, String value, Double boost) {
        return new SpanTerm(field, value, boost);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.