예를 들어, 검색엔진을 웹 결과 기반에서 검색엔진으로 변경하기 위해
이미지를 기반으로 하는 경우 defaultToImageSearch 속성을 활용할 수 있습니다.
먼저 검색엔진의 제어판에서 이미지 검색을 사용하도록 설정해야 합니다. 설정 섹션의 기본설정 탭에서 이미지 검색 옵션을 '사용'으로 클릭합니다. 있습니다. 그런 다음 웹사이트의 <div class="gcse-searchresults"></div> 요소에 defaultToImageSearch 속성을 추가합니다.
<!-- 프로그래밍 검색 엔진 ID 삽입 -->
<script async src="https://cse.google.com/cse.js?cx=017643444788069204610:4gvhea_mvga"></script>
<!-- 속성 값을 'true'로 전환해 보세요. 또는 'false'입니다. -->
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-08-22(UTC)"],[[["The search results element can be customized with additional options, such as switching to image-based results using the `defaultToImageSearch` attribute."],["To enable image search, you need to activate it in the Control Panel for your search engine and then add the `defaultToImageSearch` attribute to the search results div element."],["The `defaultToImageSearch` attribute, when set to \"true\", makes the image search tab the default view for search results."],["Further customization options for search results can be found in the Programmable Search Element Control API documentation."]]],[]]