diff --git a/elasticsearch/example/src/main/java/example/springdata/elasticsearch/conference/Conference.java b/elasticsearch/example/src/main/java/example/springdata/elasticsearch/conference/Conference.java index a1684ba7..fa7aceee 100644 --- a/elasticsearch/example/src/main/java/example/springdata/elasticsearch/conference/Conference.java +++ b/elasticsearch/example/src/main/java/example/springdata/elasticsearch/conference/Conference.java @@ -1,11 +1,11 @@ /* - * Copyright 2014-2018 the original author or authors. + * Copyright 2020 the original author or 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 * - * https://www.apache.org/licenses/LICENSE-2.0 + * 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, @@ -30,12 +30,11 @@ import lombok.Data; /** * @author Artur Konczak * @author Oliver Gierke - * @auhtor Christoph Strobl + * @author Christoph Strobl */ @Data @Builder -@Document(indexName = "conference-index", type = "geo-class-point-type", shards = 1, replicas = 0, - refreshInterval = "-1") +@Document(indexName = "conference-index") public class Conference { private @Id String id; diff --git a/elasticsearch/reactive/src/main/java/example/springdata/elasticsearch/conference/Conference.java b/elasticsearch/reactive/src/main/java/example/springdata/elasticsearch/conference/Conference.java index d8f256ae..28713302 100644 --- a/elasticsearch/reactive/src/main/java/example/springdata/elasticsearch/conference/Conference.java +++ b/elasticsearch/reactive/src/main/java/example/springdata/elasticsearch/conference/Conference.java @@ -1,11 +1,11 @@ /* - * Copyright 2019 the original author or authors. + * Copyright 2020 the original author or 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 * - * https://www.apache.org/licenses/LICENSE-2.0 + * 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, @@ -17,22 +17,22 @@ package example.springdata.elasticsearch.conference; import static org.springframework.data.elasticsearch.annotations.FieldType.*; -import java.util.List; - import lombok.Builder; import lombok.Data; + +import java.util.List; + import org.springframework.data.annotation.Id; import org.springframework.data.elasticsearch.annotations.Document; import org.springframework.data.elasticsearch.annotations.Field; import org.springframework.data.elasticsearch.core.geo.GeoPoint; /** - * @auhtor Christoph Strobl + * @author Christoph Strobl */ @Data @Builder -@Document(indexName = "conference-index", type = "geo-class-point-type", shards = 1, replicas = 0, - refreshInterval = "-1") +@Document(indexName = "conference-index") public class Conference { private @Id String id; diff --git a/elasticsearch/rest/src/main/java/example/springdata/elasticsearch/conference/Conference.java b/elasticsearch/rest/src/main/java/example/springdata/elasticsearch/conference/Conference.java index 21717490..bce3ae94 100644 --- a/elasticsearch/rest/src/main/java/example/springdata/elasticsearch/conference/Conference.java +++ b/elasticsearch/rest/src/main/java/example/springdata/elasticsearch/conference/Conference.java @@ -1,11 +1,11 @@ /* - * Copyright 2014-2018 the original author or authors. + * Copyright 2020 the original author or 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 * - * https://www.apache.org/licenses/LICENSE-2.0 + * 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, @@ -30,12 +30,11 @@ import org.springframework.data.elasticsearch.core.geo.GeoPoint; /** * @author Artur Konczak * @author Oliver Gierke - * @auhtor Christoph Strobl + * @author Christoph Strobl */ @Data @Builder -@Document(indexName = "conference-index", type = "geo-class-point-type", shards = 1, replicas = 0, - refreshInterval = "-1") +@Document(indexName = "conference-index") public class Conference { private @Id String id;