DrawingProcess
드프 DrawingProcess
DrawingProcess
전체 방문자
오늘
어제
«   2025/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
  • 분류 전체보기 (964)
    • Profile & Branding (22)
      • Career (15)
    • IT Trends (254)
      • Conference, Faire (Experien.. (31)
      • News (187)
      • Youtube (19)
      • TED (8)
      • Web Page (2)
      • IT: Etc... (6)
    • Contents (97)
      • Book (66)
      • Lecture (31)
    • Project Process (94)
      • Ideation (0)
      • Study Report (34)
      • Challenge & Award (22)
      • 1Day1Process (5)
      • Making (5)
      • KRC-FTC (Team TC(5031, 5048.. (10)
      • GCP (GlobalCitizenProject) (15)
    • Study: ComputerScience(CS) (72)
      • CS: Basic (9)
      • CS: Database(SQL) (5)
      • CS: Network (14)
      • CS: OperatingSystem (3)
      • CS: Linux (39)
      • CS: Etc... (2)
    • Study: Software(SW) (95)
      • SW: Language (29)
      • SW: Algorithms (1)
      • SW: DataStructure & DesignP.. (1)
      • SW: Opensource (15)
      • SW: Error Bug Fix (43)
      • SW: Etc... (6)
    • Study: Artificial Intellige.. (149)
      • AI: Research (1)
      • AI: 2D Vision(Det, Seg, Tra.. (35)
      • AI: 3D Vision (70)
      • AI: MultiModal (3)
      • AI: SLAM (0)
      • AI: Light Weight(LW) (3)
      • AI: Data Pipeline (7)
      • AI: Machine Learning(ML) (1)
    • Study: Robotics(Robot) (33)
      • Robot: ROS(Robot Operating .. (9)
      • Robot: Positioning (8)
      • Robot: Planning & Control (7)
    • Study: DeveloperTools(DevTo.. (83)
      • DevTool: Git (12)
      • DevTool: CMake (13)
      • DevTool: NoSQL(Elastic, Mon.. (25)
      • DevTool: Container (17)
      • DevTool: IDE (11)
      • DevTool: CloudComputing (4)
    • 인생을 살면서 (64)
      • 나의 취미들 (7)
      • 나의 생각들 (42)
      • 여행을 떠나자~ (10)
      • 분기별 회고 (5)

개발자 명언

“ 매주 목요일마다 당신이 항상 하던대로 신발끈을 묶으면 신발이 폭발한다고 생각해보라.
컴퓨터를 사용할 때는 이런 일이 항상 일어나는데도 아무도 불평할 생각을 안 한다. ”

- Jef Raskin

맥의 아버지 - 애플컴퓨터의 매킨토시 프로젝트를 주도

인기 글

최근 글

최근 댓글

티스토리

hELLO · Designed By 정상우.
DrawingProcess

드프 DrawingProcess

Study: DeveloperTools(DevTool)/DevTool: NoSQL(Elastic, Mongo)

[Elastic] Elasticsearch 데이터 타입: 정확한 데이터 타입으로 입력해야 분류, 연산, 검색 가능!

2022. 8. 26. 17:38
반응형

Elasticsearch 데이터 타입

이 문서 내의 데이터 타입의 경우, 미리 지정해 두어야 해당 데이터 타입으로 설정가능합니다.

만약에 해당 데이터 타입으로 선언해두지 않고 데이터를 받게 된다면? 기본적으로 설정되는 데이터 타입으로 자동으로 지정되며, 자동으로 설정된 인덱스의 경우 수정을 하려면 해당 필드를 삭제하거나 새로 인덱스를 생성하여 데이터를 이동해야하는 수고로움이 발생할 수 있으니 참고 부탁드립니다!!

epoch_millis 시간 데이터

"field_name" : {
    "type" : "date",
    "format" : "yyyy-MM-dd HH:mm:ss||epoch_millis"
}

epoch_second 시간 데이터

"field_name" : {
    "type" : "date",
    "format" : "yyyy-MM-dd HH:mm:ss||epoch_second"
}

geo_point 데이터

"field_name" : {
    "type" : "geo_point"
}

keyword 데이터

"field_name" : {
    "type" : "keyword",
    "ignore_above" : 256
}
  • keyword 타입인 경우 exact value가 아닌 경우에는 단어가 포함되더라도 검색이 되지 않는 것으로 확인됩니다.

text 데이터

"field_name" : {
    "type" : "text",
    "fields" : {
        "keyword" : {
            "type" : "keyword",
            "ignore_above" : 256
        }
    }
}

 

  • keyword type으로 mapping됬을 때와 다르게 단어가 존재할 경우 검색되어 document를 return하는 것을 확인할 수 있습니다

binary 데이터

The binary type accepts a binary value as a Base64 encoded string. The field is not stored by default and is not searchable:

"field_name" : {
    "type": "binary",
    "doc_values": true
}
  • 단, The Base64 encoded binary value must not have embedded newlines \n.

 

참고

  • [Elasticsearch] data type: https://esbook.kimjmin.net/07-settings-and-mappings/7.2-mappings/7.2.3-date
  • [Elasticsearch] binary type: https://www.elastic.co/guide/en/elasticsearch/reference/current/binary.html
반응형
저작자표시 비영리 변경금지 (새창열림)

'Study: DeveloperTools(DevTool) > DevTool: NoSQL(Elastic, Mongo)' 카테고리의 다른 글

[Elastic] ELK Stack: Elasticsearch 정리(NoSQL Document DB)  (0) 2022.08.31
[Elastic] ELK Stack이란? 기본 개념 적립  (0) 2022.08.30
[Elastic] Elasticsearch 인덱스 생성 및 삭제: shards, replica, mapping...  (0) 2022.08.26
[Elastic] Elasticsearch 구문 검색: 기본 Query 정리(Elastic Query DSL)  (0) 2022.08.18
[Elastic] Elasticsearch 구문 검색: 원하는 데이터를 삭제하자  (0) 2022.08.03
    'Study: DeveloperTools(DevTool)/DevTool: NoSQL(Elastic, Mongo)' 카테고리의 다른 글
    • [Elastic] ELK Stack: Elasticsearch 정리(NoSQL Document DB)
    • [Elastic] ELK Stack이란? 기본 개념 적립
    • [Elastic] Elasticsearch 인덱스 생성 및 삭제: shards, replica, mapping...
    • [Elastic] Elasticsearch 구문 검색: 기본 Query 정리(Elastic Query DSL)
    DrawingProcess
    DrawingProcess
    과정을 그리자!

    티스토리툴바