Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2015-2019 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package zipkin2.elasticsearch.internal.client;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import zipkin2.internal.Nullable;
public final class SearchRequest {
public static SearchRequest create(List indices) {
return new SearchRequest(indices, null);
}
public static SearchRequest create(List indices, String type) {
return new SearchRequest(indices, type);
}
/**
* The maximum results returned in a query. This only affects non-aggregation requests.
*
*
Not configurable as it implies adjustments to the index template (index.max_result_window)
*
*
See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
*/
static final int MAX_RESULT_WINDOW = 10000; // the default elasticsearch allowed limit
transient final List indices;
@Nullable transient final String type;
Integer size = MAX_RESULT_WINDOW;
Boolean _source;
Object query;
Map aggs;
SearchRequest(List indices, @Nullable String type) {
this.indices = indices;
this.type = type;
}
public static class Filters extends ArrayList