Examples of fieldQuery()


Examples of org.elasticsearch.index.mapper.FieldMapper.fieldQuery()

        }

        BooleanQuery query = new BooleanQuery(disableCoord);
        for (String value : values) {
            if (mapper != null) {
                query.add(new BooleanClause(mapper.fieldQuery(value, parseContext), BooleanClause.Occur.SHOULD));
            } else {
                query.add(new TermQuery(new Term(fieldName, value)), BooleanClause.Occur.SHOULD);
            }
        }
        query.setBoost(boost);
View Full Code Here

Examples of org.elasticsearch.index.mapper.FieldMapper.fieldQuery()

                }
            }
        }

        if (mapper != null && mapper.useFieldQueryWithQueryString()) {
            return wrapSmartNameQuery(mapper.fieldQuery(text, parseContext), smartNameFieldMappers, parseContext);
        }

        Analyzer analyzer = null;
        if (this.analyzer == null) {
            if (mapper != null) {
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.