mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-12 07:02:10 +00:00
Adjust @since
annotation of classes moved to new package.
Original Pull Request #2014 Closes #2010
This commit is contained in:
parent
49324a369a
commit
989c2807fb
@ -47,6 +47,7 @@ import org.springframework.util.Assert;
|
||||
* @author Mohsin Husen
|
||||
* @author Artur Konczak
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.4
|
||||
*/
|
||||
class CriteriaFilterProcessor {
|
||||
|
||||
|
@ -44,6 +44,7 @@ import org.springframework.util.Assert;
|
||||
* @author Rasmus Faber-Espensen
|
||||
* @author James Bodkin
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.4
|
||||
*/
|
||||
class CriteriaQueryProcessor {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import org.springframework.lang.NonNull;
|
||||
* AggregationContainer implementation for an Elasticsearch7 aggregation.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.3
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ElasticsearchAggregation implements AggregationContainer<Aggregation> {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import org.springframework.lang.NonNull;
|
||||
* AggregationsContainer implementation for the Elasticsearch7 aggregations.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.3
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ElasticsearchAggregations implements AggregationsContainer<Aggregations> {
|
||||
|
||||
|
@ -43,7 +43,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Roman Puchkovskiy
|
||||
* @author Mark Paluch
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ElasticsearchExceptionTranslator implements PersistenceExceptionTranslator {
|
||||
|
||||
|
@ -113,6 +113,7 @@ import org.springframework.util.Assert;
|
||||
* @author Gyula Attila Csorogi
|
||||
* @author Massimiliano Poggi
|
||||
* @author Farid Faoudi
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ElasticsearchRestTemplate extends AbstractElasticsearchTemplate {
|
||||
|
||||
|
@ -105,7 +105,7 @@ import org.springframework.util.Assert;
|
||||
* @author Russell Parry
|
||||
* @author Thomas Geese
|
||||
* @author Farid Faoudi
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ReactiveElasticsearchTemplate implements ReactiveElasticsearchOperations, ApplicationContextAware {
|
||||
|
||||
|
@ -65,7 +65,7 @@ import org.springframework.util.Assert;
|
||||
/**
|
||||
* @author Peter-Josef Meisch
|
||||
* @author George Popides
|
||||
* @since 4.1
|
||||
* @since 4.4
|
||||
*/
|
||||
class ReactiveIndexTemplate implements ReactiveIndexOperations {
|
||||
|
||||
|
@ -117,7 +117,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Farid Faoudi
|
||||
* @author Peer Mueller
|
||||
* @author vdisk
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
// todo make package private again after refactoring
|
||||
public class RequestFactory {
|
||||
|
@ -56,7 +56,7 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author George Popides
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.2
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ResponseConverter {
|
||||
private ResponseConverter() {}
|
||||
|
@ -62,7 +62,7 @@ import org.springframework.util.Assert;
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Sascha Woo
|
||||
* @author George Popides
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
class RestIndexTemplate extends AbstractIndexTemplate implements IndexOperations {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import org.elasticsearch.search.SearchHits;
|
||||
* Utility class to prevent leaking of Lucene API into Spring Data Elasticsearch.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
public final class SearchHitsUtil {
|
||||
private SearchHitsUtil() {}
|
||||
|
@ -35,6 +35,7 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author Don Wellington
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.4
|
||||
*/
|
||||
public class RestClientFactoryBean implements FactoryBean<RestHighLevelClient>, InitializingBean, DisposableBean {
|
||||
|
||||
|
@ -59,7 +59,7 @@ import org.springframework.util.Assert;
|
||||
* @author Henrique Amaral
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Nic Hines
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
*/
|
||||
public final class RestClients {
|
||||
|
||||
|
@ -147,7 +147,7 @@ import org.springframework.web.reactive.function.client.WebClient.RequestBodySpe
|
||||
* @author Brian Clozel
|
||||
* @author Farid Faoudi
|
||||
* @author George Popides
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
* @see ClientConfiguration
|
||||
* @see ReactiveRestClients
|
||||
*/
|
||||
|
@ -17,6 +17,6 @@ package org.springframework.data.elasticsearch.backend.elasticsearch7.client.rea
|
||||
|
||||
/**
|
||||
* @author Roman Puchkovskiy
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
class DefaultRequestCreator implements RequestCreator {}
|
||||
|
@ -32,7 +32,7 @@ import org.springframework.web.reactive.function.client.ClientResponse;
|
||||
* @author Christoph Strobl
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Mark Paluch
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
*/
|
||||
// todo make package private again after refactoring?
|
||||
public class RawActionResponse extends ActionResponse {
|
||||
|
@ -77,7 +77,7 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
* @author Henrique Amaral
|
||||
* @author Thomas Geese
|
||||
* @author Farid Faoudi
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
* @see ClientConfiguration
|
||||
* @see ReactiveRestClients
|
||||
*/
|
||||
|
@ -58,7 +58,7 @@ import org.springframework.data.elasticsearch.backend.elasticsearch7.client.util
|
||||
* @author Roman Puchkovskiy
|
||||
* @author Farid Faoudi
|
||||
* @author George Popides
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
public interface RequestCreator {
|
||||
|
||||
|
@ -91,7 +91,7 @@ import org.springframework.data.elasticsearch.backend.elasticsearch7.client.reac
|
||||
* Only intended for internal use.
|
||||
*
|
||||
* @author Russell Parry
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
public class NamedXContents {
|
||||
|
||||
|
@ -119,7 +119,7 @@ import org.springframework.lang.Nullable;
|
||||
* @author Christoph Strobl
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Farid Faoudi
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
*/
|
||||
@SuppressWarnings("JavadocReference")
|
||||
public class RequestConverters {
|
||||
|
@ -27,7 +27,7 @@ import org.springframework.data.elasticsearch.core.cluster.ClusterOperations;
|
||||
* Default implementation of {@link ClusterOperations} using the {@link ElasticsearchRestTemplate}.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.2
|
||||
* @since 4.4
|
||||
*/
|
||||
class DefaultClusterOperations implements ClusterOperations {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import org.springframework.data.elasticsearch.core.cluster.ReactiveClusterOperat
|
||||
* Default implementation of {@link ReactiveClusterOperations} using the {@link ReactiveElasticsearchOperations}.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.2
|
||||
* @since 4.4
|
||||
*/
|
||||
public class DefaultReactiveClusterOperations implements ReactiveClusterOperations {
|
||||
private final ReactiveElasticsearchOperations operations;
|
||||
|
@ -21,7 +21,7 @@ import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.3
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ElasticsearchClusterOperations {
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ import org.springframework.data.elasticsearch.core.convert.ElasticsearchConverte
|
||||
/**
|
||||
* @author Christoph Strobl
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
* @see ElasticsearchConfigurationSupport
|
||||
*/
|
||||
public abstract class AbstractElasticsearchConfiguration extends ElasticsearchConfigurationSupport {
|
||||
|
@ -28,7 +28,7 @@ import org.springframework.lang.Nullable;
|
||||
/**
|
||||
* @author Christoph Strobl
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 3.2
|
||||
* @since 4.4
|
||||
* @see ElasticsearchConfigurationSupport
|
||||
*/
|
||||
public abstract class AbstractReactiveElasticsearchConfiguration extends ElasticsearchConfigurationSupport {
|
||||
|
@ -64,7 +64,7 @@ import com.fasterxml.jackson.core.JsonGenerator;
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Roman Puchkovskiy
|
||||
* @author Matt Gilene
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
public final class DocumentAdapters {
|
||||
|
||||
|
@ -42,7 +42,7 @@ import org.springframework.util.Assert;
|
||||
* created with the {@link #from(SearchResponse,Function)} method.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.0
|
||||
* @since 4.4
|
||||
*/
|
||||
public class SearchDocumentResponse {
|
||||
|
||||
|
@ -35,6 +35,7 @@ import org.springframework.util.StringUtils;
|
||||
* Converts the {@link Highlight} annotation from a method to an Elasticsearch {@link HighlightBuilder}.
|
||||
*
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.4
|
||||
*/
|
||||
public class HighlightQueryBuilder {
|
||||
|
||||
|
@ -43,6 +43,7 @@ import org.springframework.lang.Nullable;
|
||||
* @author Jean-Baptiste Nizet
|
||||
* @author Martin Choraine
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 4.4
|
||||
*/
|
||||
public class NativeSearchQuery extends BaseQuery {
|
||||
|
||||
|
@ -55,6 +55,7 @@ import org.springframework.lang.Nullable;
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Peer Mueller
|
||||
* @author vdisk
|
||||
* @since 4.4
|
||||
*/
|
||||
public class NativeSearchQueryBuilder {
|
||||
|
||||
@ -105,17 +106,11 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withSorts(Collection<SortBuilder<?>> sortBuilders) {
|
||||
this.sortBuilders.addAll(sortBuilders);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withSorts(SortBuilder<?>... sortBuilders) {
|
||||
Collections.addAll(this.sortBuilders, sortBuilders);
|
||||
return this;
|
||||
@ -131,9 +126,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withCollapseBuilder(@Nullable CollapseBuilder collapseBuilder) {
|
||||
this.collapseBuilder = collapseBuilder;
|
||||
return this;
|
||||
@ -148,17 +140,11 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withAggregations(Collection<AbstractAggregationBuilder<?>> aggregationBuilders) {
|
||||
this.aggregationBuilders.addAll(aggregationBuilders);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withAggregations(AbstractAggregationBuilder<?>... aggregationBuilders) {
|
||||
Collections.addAll(this.aggregationBuilders, aggregationBuilders);
|
||||
return this;
|
||||
@ -173,18 +159,12 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withPipelineAggregations(
|
||||
Collection<PipelineAggregationBuilder> pipelineAggregationBuilders) {
|
||||
this.pipelineAggregationBuilders.addAll(pipelineAggregationBuilders);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withPipelineAggregations(PipelineAggregationBuilder... pipelineAggregationBuilders) {
|
||||
Collections.addAll(this.pipelineAggregationBuilders, pipelineAggregationBuilders);
|
||||
return this;
|
||||
@ -200,9 +180,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withHighlightFields(Collection<HighlightBuilder.Field> highlightFields) {
|
||||
this.highlightFields.addAll(highlightFields);
|
||||
return this;
|
||||
@ -213,9 +190,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withIndicesBoost(IndexBoost... indicesBoost) {
|
||||
Collections.addAll(this.indicesBoost, indicesBoost);
|
||||
return this;
|
||||
@ -231,9 +205,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withFields(Collection<String> fields) {
|
||||
this.fields.addAll(fields);
|
||||
return this;
|
||||
@ -244,9 +215,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.4
|
||||
*/
|
||||
public NativeSearchQueryBuilder withStoredFields(Collection<String> storedFields) {
|
||||
|
||||
if (this.storedFields == null) {
|
||||
@ -257,9 +225,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.4
|
||||
*/
|
||||
public NativeSearchQueryBuilder withStoredFields(String... storedFields) {
|
||||
|
||||
if (this.storedFields == null) {
|
||||
@ -282,7 +247,6 @@ public class NativeSearchQueryBuilder {
|
||||
/**
|
||||
* @param trackScores whether to track scores.
|
||||
* @return this object
|
||||
* @since 3.1
|
||||
*/
|
||||
public NativeSearchQueryBuilder withTrackScores(boolean trackScores) {
|
||||
this.trackScores = trackScores;
|
||||
@ -294,9 +258,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withIds(String... ids) {
|
||||
Collections.addAll(this.ids, ids);
|
||||
return this;
|
||||
@ -327,9 +288,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.2
|
||||
*/
|
||||
public NativeSearchQueryBuilder withTrackTotalHits(Boolean trackTotalHits) {
|
||||
this.trackTotalHits = trackTotalHits;
|
||||
return this;
|
||||
@ -345,9 +303,6 @@ public class NativeSearchQueryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 4.3
|
||||
*/
|
||||
public NativeSearchQueryBuilder withSuggestBuilder(SuggestBuilder suggestBuilder) {
|
||||
this.suggestBuilder = suggestBuilder;
|
||||
return this;
|
||||
|
@ -20,6 +20,7 @@ import org.elasticsearch.script.Script;
|
||||
/**
|
||||
* @author Ryan Murfitt
|
||||
* @author Artur Konczak
|
||||
* @since 4.4
|
||||
*/
|
||||
public class ScriptField {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user