38 |
<li><a href="#estdoc">API for Documents</a></li> |
<li><a href="#estdoc">API for Documents</a></li> |
39 |
<li><a href="#estcond">API for Search Conditions</a></li> |
<li><a href="#estcond">API for Search Conditions</a></li> |
40 |
<li><a href="#estdb">API for Database</a></li> |
<li><a href="#estdb">API for Database</a></li> |
41 |
<li><a href="#gatherer">Sample of Gatherer</a></li> |
<li><a href="#gatherer">Example of Gatherer</a></li> |
42 |
<li><a href="#searcher">Sample of Searcher</a></li> |
<li><a href="#searcher">Example of Searcher</a></li> |
43 |
<li><a href="#paralleling">Paralleling</a></li> |
<li><a href="#paralleling">Paralleling</a></li> |
44 |
</ol> |
</ol> |
45 |
|
|
47 |
|
|
48 |
<h2 id="introduction">Introduction</h2> |
<h2 id="introduction">Introduction</h2> |
49 |
|
|
50 |
<p>This document describes how to use the API of Hyper Estraier. If you have never read <a href="uguide-ja.html">the user's guide</a> yet, please do it beforehand.</p> |
<p>This document describes how to use the API of Hyper Estraier. If you have never read <a href="uguide-en.html">the user's guide</a> yet, please do it beforehand.</p> |
51 |
|
|
52 |
<p>The API enables to realize many requirements which is impossible with `estcmd' and `estsearch.cgi' only. Whlie `estcmd' can handle documents as files, it is possible to make an application to handle records in a relational database as a document by using the library. While `estseek.cgi' is accessed with a web browser, it is possible to make an application with a GUI based on the native OS.</p> |
<p>The API enables to realize many requirements which is impossible with `estcmd' and `estsearch.cgi' only. Whlie `estcmd' can handle documents as files, it is possible to make an application to handle records in a relational database as a document by using the library. While `estseek.cgi' is accessed with a web browser, it is possible to make an application with a GUI based on the native OS.</p> |
53 |
|
|
352 |
<dd>`cond' specifies a condition object.</dd> |
<dd>`cond' specifies a condition object.</dd> |
353 |
</dl> |
</dl> |
354 |
|
|
355 |
<p>The function `est_cond_set_phrase' is used in order to set a search phrase to a condition object.</p> |
<p>The function `est_cond_set_phrase' is used in order to set the search phrase to a condition object.</p> |
356 |
|
|
357 |
<dl> |
<dl> |
358 |
<dt><kbd>void est_cond_set_phrase(ESTCOND *<var>cond</var>, const char *<var>phrase</var>);</kbd></dt> |
<dt><kbd>void est_cond_set_phrase(ESTCOND *<var>cond</var>, const char *<var>phrase</var>);</kbd></dt> |
593 |
|
|
594 |
<hr /> |
<hr /> |
595 |
|
|
596 |
<h2 id="gatherer">Sample of Gatherer</h2> |
<h2 id="gatherer">Example of Gatherer</h2> |
597 |
|
|
598 |
<p>The following is the simplest implementation of a gatherer.</p> |
<p>The following is the simplest implementation of a gatherer.</p> |
599 |
|
|
617 |
doc = est_doc_new(); |
doc = est_doc_new(); |
618 |
|
|
619 |
/* add attributes to the document object */ |
/* add attributes to the document object */ |
620 |
est_doc_add_attr(doc, "@uri", "http://estraie.gov/example001.c"); |
est_doc_add_attr(doc, "@uri", "http://estraier.gov/example.txt"); |
621 |
est_doc_add_attr(doc, "@title", "Over the Rainbow"); |
est_doc_add_attr(doc, "@title", "Over the Rainbow"); |
622 |
|
|
623 |
/* add the body text to the document object */ |
/* add the body text to the document object */ |
643 |
|
|
644 |
<hr /> |
<hr /> |
645 |
|
|
646 |
<h2 id="searcher">Sample of Searcher</h2> |
<h2 id="searcher">Example of Searcher</h2> |
647 |
|
|
648 |
<p>The following is the simplest implementation of a searcher.</p> |
<p>The following is the simplest implementation of a searcher.</p> |
649 |
|
|