일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- docker
- licence delete curl
- query
- springboot
- Python
- ELASTIC
- 파이썬
- aggregation
- plugin
- License
- zip 파일 암호화
- API
- Elasticsearch
- Kafka
- sort
- token filter test
- Test
- 900gle
- Java
- license delete
- matplotlib
- zip 암호화
- TensorFlow
- MySQL
- aggs
- flask
- Mac
- 차트
- analyzer test
- high level client
Archives
- Today
- Total
개발잡부
[900gle] 상품데이터 색인 본문
반응형
1초에 한번씩 증분색인 실행
package com.bbongdoo.doo.controller;
import com.bbongdoo.doo.service.ProductsService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags = {"1. Products"})
@RestController
@RequestMapping("indexer")
@RequiredArgsConstructor
public class ProductsRestController {
private final ProductsService productsService;
@CrossOrigin("*")
@PostMapping("static/product")
public void staticIndex() {
productsService.staticIndex();
}
}
반응형
Comments