{
  "mappings": {
    "properties": {
      "record_id": { "type": "long" },
      "user_id": { "type": "long" },
      "is_favorite": { "type": "boolean" },
      "title": { "type": "text", "analyzer": "nori", "fields": { "keyword": { "type": "keyword" } } },
      "content": { "type": "text", "analyzer": "nori" },
      "tags": { "type": "keyword" },
      "location_name": { "type": "text", "analyzer": "nori", "fields": { "keyword": { "type": "keyword" } } },
      "has_images": { "type": "boolean" },
      "thumbnail_image": { "type": "keyword", "index": false }, // 검색에는 안쓰이므로 index: false
      "connections_count": { "type": "integer" },
      "date": { "type": "date" },
      "created_at": { "type": "date" }
    }
  }
}
필드 타입 설명
record_id long DB와 매핑하기 위함
user_id long 사용자 필터
title text(nori) + keyword (서브필드) 기록 이름
content text (nori) 기록 본문
is_favorite (네이밍 고민중) boolean 즐겨찾기 여부
tags keyword[] 기록에 적용된 태그 필터 목록
location_name text (nori) 장소 명
date date 기록 날짜
has_images boolean 이미지 가지고 있는지 여부 (필터)
thumbnail_image keyword 대표 이미지 URL
connections_count integer 연결된 기록 개수
created_at date 기록 생성 날짜