diff --git a/api/src/main/resources/application.properties b/api/src/main/resources/application.properties index 7fc7d0d1..ca9475f0 100644 --- a/api/src/main/resources/application.properties +++ b/api/src/main/resources/application.properties @@ -2,7 +2,6 @@ spring.http.multipart.enabled=true spring.http.multipart.max-file-size=8MB spring.http.multipart.max-request-size=8MB -spring.http.multipart.location=/tmp/jakduk # view resolver spring.mvc.view.prefix=/WEB-INF/views/ diff --git a/api/src/test/java/com/jakduk/api/common/CommonTest.java b/api/src/test/java/com/jakduk/api/common/CommonTest.java index 2f882177..9af84d2b 100644 --- a/api/src/test/java/com/jakduk/api/common/CommonTest.java +++ b/api/src/test/java/com/jakduk/api/common/CommonTest.java @@ -15,9 +15,6 @@ public class CommonTest extends AbstractSpringTest { @Autowired CommonService commonService; - @Value("${storage.temp.path}") - private String storageTempPath; - @Autowired private Environment environment; @@ -25,7 +22,6 @@ public class CommonTest extends AbstractSpringTest { @Test public void environmentTest() { - System.out.println(storageTempPath); System.out.println(environment.getProperty("mongo.db.name")); } diff --git a/core/src/main/java/com/jakduk/core/service/SearchService.java b/core/src/main/java/com/jakduk/core/service/SearchService.java index f22c02ae..664470dd 100644 --- a/core/src/main/java/com/jakduk/core/service/SearchService.java +++ b/core/src/main/java/com/jakduk/core/service/SearchService.java @@ -52,9 +52,7 @@ import org.springframework.util.ObjectUtils; import java.io.IOException; -import java.time.LocalDate; import java.time.LocalDateTime; -import java.time.ZoneId; import java.util.*; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; @@ -313,7 +311,7 @@ public PopularSearchWordResult aggregateSearchWord(Long registerDateFrom, Intege SearchRequestBuilder searchRequestBuilder = client.prepareSearch() .setIndices(elasticsearchIndexSearchWord) .setTypes(CoreConst.ES_TYPE_SEARCH_WORD) - .setSize(size) + .setSize(0) .setQuery( QueryBuilders.rangeQuery("registerDate").gte(registerDateFrom) ) @@ -321,6 +319,7 @@ public PopularSearchWordResult aggregateSearchWord(Long registerDateFrom, Intege AggregationBuilders .terms("popular_word_aggs") .field("word") + .size(size) ); log.debug("aggregateSearchWord Query:\n" + searchRequestBuilder.internalBuilder()); diff --git a/core/src/main/resources/application-core-default.properties b/core/src/main/resources/application-core-default.properties index 5e4ca328..0607a8ec 100644 --- a/core/src/main/resources/application-core-default.properties +++ b/core/src/main/resources/application-core-default.properties @@ -26,7 +26,6 @@ core.elasticsearch.bulk.concurrent.requests=2 email.enable = false # file server path -storage.temp.path = /home/pyohwan/tmp storage.image.path = /home/pyohwan/storage/image/ storage.thumbnail.path = /home/pyohwan/storage/thumbnail/ diff --git a/core/src/main/resources/application-core-production.properties b/core/src/main/resources/application-core-production.properties index ad18ebb6..444fb84a 100644 --- a/core/src/main/resources/application-core-production.properties +++ b/core/src/main/resources/application-core-production.properties @@ -23,7 +23,6 @@ core.elasticsearch.bulk.concurrent.requests=2 email.enable = true # file server path -storage.temp.path = /jakduk/temp storage.image.path = /jakduk/storage/image/ storage.thumbnail.path = /jakduk/storage/thumbnail/ diff --git a/core/src/main/resources/application-core-staging.properties b/core/src/main/resources/application-core-staging.properties index 169fbea6..f36729da 100644 --- a/core/src/main/resources/application-core-staging.properties +++ b/core/src/main/resources/application-core-staging.properties @@ -23,7 +23,6 @@ core.elasticsearch.bulk.concurrent.requests=2 email.enable = true # file server path -storage.temp.path = /jakduk/temp storage.image.path = /jakduk/storage/image/ storage.thumbnail.path = /jakduk/storage/thumbnail/