Package io.crate.lucene.match

Examples of io.crate.lucene.match.MatchQueryBuilder


                BytesRef matchType = (BytesRef) ((Literal) arguments.get(2)).value();
                Map options = (Map) ((Literal) arguments.get(3)).value();

                checkArgument(queryString != null, "cannot use NULL as query term in match predicate");

                MatchQueryBuilder queryBuilder;
                if (fields.size() == 1) {
                    queryBuilder = new MatchQueryBuilder(searchContext, indexCache, matchType, options);
                } else {
                    queryBuilder = new MultiMatchQueryBuilder(searchContext, indexCache, matchType, options);
                }
                return queryBuilder.query(fields, queryString);
            }
View Full Code Here

TOP

Related Classes of io.crate.lucene.match.MatchQueryBuilder

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.