# 7.2.4 불리언 - boolean

&#x20; 불리언은 **true** 와 **false** 두가지 값을 갖는 필드 타입입니다. 선언은 `"type": "boolean"` 로 합니다. `"true"` 와 같이 문자열로 입력이 되어도 `true` 로 해석이 되어 저장됩니다. 불리언 필드를 사용 할 때는 일반적으로 term 쿼리를 이용해서 검색을 합니다.

&#x20; 다음은 불리언 필드에서 사용 가능한 옵션들입니다.

* `"doc_values"`, `"index"` 옵션들은 문자열, 숫자 필드와 기능이 동일합니다.
* `"null_value" : <true | false>`  - 필드가 존재하지 않거나 값이 **null** 일 때 디폴트 값을 지정합니다. 지정하지 않으면 불리언 필드가 없거나 값이 null인 경우 존재하지 않는 것으로 처리되어 true / false 모두 쿼리나 집계에 나타나지 않습니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://esbook.kimjmin.net/07-settings-and-mappings/7.2-mappings/7.2.4-boolean.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
