Package org.elasticsearch.search.internal

Examples of org.elasticsearch.search.internal.SearchContext.source()


        SearchContext context = SearchContext.current();
        if (context == null) {
            throw new QueryParsingException(parseContext.index(), "[" + name + "] query and filter requires a search context");
        }

        if (TransportShardDeleteByQueryAction.DELETE_BY_QUERY_API.equals(context.source())) {
            throw new QueryParsingException(parseContext.index(), "[" + name + "] query and filter unsupported in delete_by_query api");
        }
    }

}
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.