Package org.apache.lucene.search

Examples of org.apache.lucene.search.DeletionAwareConstantScoreQuery


        // cache the not filter as well, so it will be faster
        filter = parseContext.cacheFilter(filter, null);

        filter = wrapSmartNameFilter(filter, smartNameFieldMappers, parseContext);

        return new DeletionAwareConstantScoreQuery(filter);
    }
View Full Code Here


                }
            }
            // now, go and execute the filters->collector ones
            for (Map.Entry<Filter, List<Collector>> entry : filtersByCollector.entrySet()) {
                Filter filter = entry.getKey();
                Query query = new DeletionAwareConstantScoreQuery(filter);
                Filter searchFilter = context.mapperService().searchFilter(context.types());
                if (searchFilter != null) {
                    query = new FilteredQuery(query, context.filterCache().cache(searchFilter));
                }
                try {
View Full Code Here

    public static boolean isMatchAllQuery(Query query) {
        if (query instanceof MatchAllDocsQuery) {
            return true;
        }
        if (query instanceof DeletionAwareConstantScoreQuery) {
            DeletionAwareConstantScoreQuery scoreQuery = (DeletionAwareConstantScoreQuery) query;
            if (scoreQuery.getFilter() instanceof MatchAllDocsFilter) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.DeletionAwareConstantScoreQuery

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.