

# 경로 추출기에서 검색 경로 사용
<a name="ion-serde-using-search-paths-in-path-extractors"></a>

경로 추출기의 SerDe 속성 구문은 *<path\$1extractor\$1expression>*을 포함합니다.

```
"ion.<column_name>.path_extractor" = "<path_extractor_expression>"         
```

*<path\$1extractor\$1expression>*을 사용하여 Amazon Ion 문서를 구문 분석하고 일치하는 데이터를 찾는 검색 경로를 지정할 수 있습니다. 검색 경로는 괄호로 묶여 있으며 다음 구성 요소 중 하나 이상을 공백으로 구분하여 포함할 수 있습니다.
+ **와일드 카드** - 모든 값과 일치합니다.
+ **인덱스** - 지정된 숫자 인덱스의 값과 일치합니다. 인덱스는 0부터 시작됩니다.
+ **텍스트** - 필드 이름이 지정된 텍스트와 동일한 모든 값과 일치합니다.
+ **주석** - 지정된 주석을 갖는 래핑된 경로 구성 요소에 의해 지정된 값과 일치합니다.

다음 예제에서는 Amazon Ion 문서 및 일부 검색 경로 예시를 보여 줍니다.

```
-- Amazon Ion document
{
    foo: ["foo1", "foo2"] ,
    bar: "myBarValue", 
    bar: A::"annotatedValue"
}

-- Example search paths
(foo 0)       # matches "foo1"
(1)           # matches "myBarValue"
(*)           # matches ["foo1", "foo2"], "myBarValue" and A::"annotatedValue"
()            # matches {foo: ["foo1", "foo2"] , bar: "myBarValue", bar: A::"annotatedValue"}
(bar)         # matches "myBarValue" and A::"annotatedValue"
(A::bar)      # matches A::"annotatedValue"
```