Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- github
- 404error
- mssql
- spring
- oracle
- 오블완
- isNotEmpty
- Javascript
- PostgreSQL
- java
- analytics4
- mysql
- pem
- springboot
- 리눅스
- 티스토리챌린지
- IntelliJ
- 명령어
- docker
- Python
- pandas
- 자바
- Linux
- DBMS
- SQL
- iBatis
- MariaDB
- 호이스팅
- Kibana
- git
Archives
- Today
- Total
목록2025/03/28 (1)
hanker

Spring에서 ElasticSearch 내 인덱스 전체 목록을 가져와보자. 엘라스틱 서치 7 버전과 8 버전의 코드가 조금 다르다.아래 코드로 알아보자 0. 의존성 추가 co.elastic.clients elasticsearch-java 8.12.0 1. 엘라스틱 인덱스 전체 리스트 가져오기 (7.x 버전) - RestHighLevelClient 사용@Autowiredprivate RestHighLevelClient client;public List getAllIndices() throws IOException { GetAliasesRequest request = new GetAliasesRequest(); // 전체 인덱스를 대상으로 함 GetAliasesResponse respo..
DATABASE/ElasticSearch
2025. 3. 28. 12:04