티스토리 뷰

개발

elasticsearch 문제 상황

달리는개발자 2023. 5. 26. 23:15

오류 메시지

Invalid or missing build flavor [oss]
 
 
elastic stack 7.10.1 인데 client 7.17.10을 사용했더니 발생함. 같은 버전으로 맞추니 해결됨.
 
 
버전이 올라가면서 패키지 구조가 바뀌는 것들이 있는데 맞춰줌.
 
 
 
client 6.11 대를 사용하다가 7.10 대에 elasticsearch를 사용했더니 일부 문제가 있었음.
 
index type이 depreacted 되어서 모두 _doc을 사용함.
 
custom type field를 정의해서 유사하게 사용할 수 있음.
 
 

Removal of mapping types | Elasticsearch Guide [7.17] | Elastic

Indices created in Elasticsearch 7.0.0 or later no longer accept a _default_ mapping. Indices created in 6.x will continue to function as before in Elasticsearch 6.x. Types are deprecated in APIs in 7.0, with breaking changes to the index creation, put map

www.elastic.co

 

index 생성하고 index request 시에 아래와 같은 오류가 발생함.

Mapper for [name] conflicts with existing mapper:
	Cannot update parameter [analyzer] from [custom_analyzer] to [default]]]],

IndexRequest 시에 다른 index type에서 _doc으로 주니 해결됨.

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
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
글 보관함