Package io.crate.lucene

Examples of io.crate.lucene.LuceneQueryBuilder.convert()


                cacheRecycler,
                pageCacheRecycler,
                bigArrays
        );
        LuceneQueryBuilder builder = new LuceneQueryBuilder(functions, searchContext, indexService.cache());
        LuceneQueryBuilder.Context ctx = builder.convert(whereClause);
        searchContext.parsedQuery(new ParsedQuery(ctx.query(), ImmutableMap.<String, Filter>of()));
        Float minScore = ctx.minScore();
        if (minScore != null) {
            searchContext.minimumScore(minScore);
        }
View Full Code Here


        );
        SearchContext.setCurrent(context);

        try {
            LuceneQueryBuilder builder = new LuceneQueryBuilder(functions, context, indexService.cache());
            LuceneQueryBuilder.Context ctx = builder.convert(request.whereClause());
            context.parsedQuery(new ParsedQuery(ctx.query(), ImmutableMap.<String, Filter>of()));
            Float minScore = ctx.minScore();
            if (minScore != null) {
                context.minimumScore(minScore);
            }
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.