Classic/VPC 환경에서 이용 가능합니다.
검색 결과 추출 방식 설정입니다.
구문
구문은 다음과 같습니다.
private String section_name;
private String passage_type;
private String passage_option
private Integer max_length;
필드
필드에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
section_name |
String | Required | 결과로 출력할 섹션 지정
|
passage_type |
String | Optional | Passage 추출 방식 지정
|
passage_option |
String | Optional | Passage 추출 옵션 지정(CBT 범위 밖) |
max_length |
Integer | Optional | Passage 추출 길이 지정 |
예시
검색 요청 시 예시는 다음과 같습니다.
{
"search": {
"content": {
"main": {
"query": "날씨"
}
}
},
"passage": {
"TITLE": {
"passage_type": "classic",
"passage_option": "mspcnt=1;rmtag=on;",
"max_length": 400
},
"TITLE+BODY": {
"passage_type": "classic",
"passage_option": "mspcnt=1;rmtag=on;",
"max_length": 500
}
}
}