« NHN UI Library | Main | 따뜻한 세상 뉴스 RSS Feed »
November 24, 2006
OpenSearch는 무엇일까?

OpenSearch는 A9에서 만든 검색결과를 공유할 수 있는 간단한 포맷입니다.
최근에 IE7에서도 OpenSearch 1.1를 지원한다고 하니, 한번쯤 보는것도 좋겠습니다.
1. 검색엔진의 정의
아래와 같은 XML파일로 검색엔진을 정의합니다.
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Web Search</ShortName>
<Description>Use Example.com to search the Web.</Description>
<Tags>example web</Tags>
<Contact>admin@example.com</Contact>
<Url type="application/rss+xml"
template="http://example.com/?q={searchTerms}&pw={startPage?}&format=rss"/>
</OpenSearchDescription>
2. 검색결과를 RSS로
Url 로 정의된 페이지 호출시 결과를 RSS 2.0포멧으로 출력합니다.
결국 RSS서비스 이군요. :)
여기를 참고하세요.
Posted by kiseok7 at November 24, 2006 12:39 AM
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)