/[hyperestraier]/upstream/0.5.2/doc/japidoc/overview-summary.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/0.5.2/doc/japidoc/overview-summary.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations)
Wed Aug 3 15:21:15 2005 UTC (18 years, 9 months ago) by dpavlin
File MIME type: text/html
File size: 9311 byte(s)
import upstream version 0.5.2

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_06) on Mon Jul 25 11:24:18 JST 2005 -->
6 <TITLE>
7 Overview (estraier)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="Overview">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="Overview (estraier)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
40 </TR>
41 </TABLE>
42 </TD>
43 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
44 </EM>
45 </TD>
46 </TR>
47
48 <TR>
49 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
50 &nbsp;PREV&nbsp;
51 &nbsp;NEXT</FONT></TD>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 <A HREF="index.html" target="_top"><B>FRAMES</B></A> &nbsp;
54 &nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
55 &nbsp;<SCRIPT type="text/javascript">
56 <!--
57 if(window==top) {
58 document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
59 }
60 //-->
61 </SCRIPT>
62 <NOSCRIPT>
63 <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
64 </NOSCRIPT>
65
66 </FONT></TD>
67 </TR>
68 </TABLE>
69 <A NAME="skip-navbar_top"></A>
70 <!-- ========= END OF TOP NAVBAR ========= -->
71
72 <HR>
73 Hyper Estraier.
74 <P>
75 <B>See:</B>
76 <BR>
77 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#overview_description"><B>Description</B></A>
78 <P>
79
80 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
81 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
82 <TD COLSPAN=2><FONT SIZE="+2">
83 <B>Packages</B></FONT></TD>
84 </TR>
85 <TR BGCOLOR="white" CLASS="TableRowColor">
86 <TD WIDTH="20%"><B><A HREF="estraier/package-summary.html">estraier</A></B></TD>
87 <TD>&nbsp;</TD>
88 </TR>
89 </TABLE>
90
91 <P>
92 &nbsp;<A NAME="overview_description"><!-- --></A>
93 <P>
94 <h1>Hyper Estraier.</h1>
95
96 <div>a full-text search system for communities.</div>
97
98 <h2>Introduction</h2>
99
100 <p>This is a package implementing the node API of <a href="http://hyperestraier.sourceforge.net/">Hyper Estraier</a>. This is a pure java package though it is not uncertified. So, it works on Linux, Mac OS X, Windows, and so on. It does not depend on the core library of Hyper Estraier. Applications are implemented as clients of node servers running on local or remote machines.</p>
101
102 <p>Though Hyper Estraier itself is released under the terms of the GNU LGPL, this package is released under the terms of a BSD-style license.</p>
103
104 <h2>Setting</h2>
105
106 <p>Get the JAR file `<a href="http://hyperestraier.sourceforge.net/jar/estraier.jar">estraier.jar</a>' and make the classpath include the JAR file.</p>
107
108 <p>`estraier.*' should be imported in each source file of application programs.</p>
109
110 <h2>Example of Gatherer</h2>
111
112 <p>The following is the simplest implementation of a gatherer.</p>
113
114 <pre style="margin: 0.5em 0.5em; padding: 0.1em 0.3em; border: 1pt solid #aaaaaa;">import estraier.*;
115
116 public class NodeExample001 {
117 public static void main(String[] args){
118 // create and configure the node connecton object
119 Node node = new NodeImpl();
120 node.set_url("http://localhost:1978/node/test1");
121 node.set_auth("admin", "admin");
122 // create a document object
123 Document doc = new DocumentImpl();
124 // add attributes to the document object
125 doc.add_attr("@uri", "http://estraier.gov/example.txt");
126 doc.add_attr("@title", "Over the Rainbow");
127 // add the body text to the document object
128 doc.add_text("Somewhere over the rainbow. Way up high.");
129 doc.add_text("There's a land that I heard of once in a lullaby.");
130 // register the document object to the node
131 if(!node.put_doc(doc))
132 System.err.println("error: " + node.status());
133 }
134 }
135 </pre>
136
137 <h2>Example of Searcher</h2>
138
139 <p>The following is the simplest implementation of a searcher.</p>
140
141 <pre style="margin: 0.5em 0.5em; padding: 0.1em 0.3em; border: 1pt solid #aaaaaa;">import estraier.*;
142
143 public class NodeExample002 {
144 public static void main(String[] args){
145 // create the node connecton object
146 Node node = new NodeImpl();
147 node.set_url("http://localhost:1978/node/test1");
148 // create a search condition object
149 Condition cond = new ConditionImpl();
150 // set the search phrase to the search condition object
151 cond.set_phrase("rainbow AND lullaby");
152 // get the result of search
153 NodeResult nres = node.search(cond, 0);
154 if(nres != null){
155 // for each document in the result
156 for(int i = 0; i &lt; nres.doc_num(); i++){
157 // get a result document object
158 ResultDocument rdoc = nres.get_doc(i);
159 // display attributes
160 System.out.println("URI: " + rdoc.attr("@uri"));
161 System.out.println("Title: " + rdoc.attr("@title"));
162 // display the snippet text
163 System.out.print(rdoc.snippet());
164 }
165 } else {
166 System.err.println("error: " + node.status());
167 }
168 }
169 }
170 </pre>
171
172 <h2>License</h2>
173
174 <div>Copyright (C) 2004-2005 Mikio Hirabayashi</div>
175 <div>All rights reserved.</div>
176
177 <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
178
179 <ul>
180 <li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
181 <li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
182 <li>Neither the name of Mikio Hirabayashi nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
183 </ul>
184
185 <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
186 <P>
187
188 <P>
189 <HR>
190
191
192 <!-- ======= START OF BOTTOM NAVBAR ====== -->
193 <A NAME="navbar_bottom"><!-- --></A>
194 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
195 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
196 <TR>
197 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
198 <A NAME="navbar_bottom_firstrow"><!-- --></A>
199 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
200 <TR ALIGN="center" VALIGN="top">
201 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
202 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
203 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
204 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
205 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
206 </TR>
207 </TABLE>
208 </TD>
209 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
210 </EM>
211 </TD>
212 </TR>
213
214 <TR>
215 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
216 &nbsp;PREV&nbsp;
217 &nbsp;NEXT</FONT></TD>
218 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
219 <A HREF="index.html" target="_top"><B>FRAMES</B></A> &nbsp;
220 &nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
221 &nbsp;<SCRIPT type="text/javascript">
222 <!--
223 if(window==top) {
224 document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
225 }
226 //-->
227 </SCRIPT>
228 <NOSCRIPT>
229 <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
230 </NOSCRIPT>
231
232 </FONT></TD>
233 </TR>
234 </TABLE>
235 <A NAME="skip-navbar_bottom"></A>
236 <!-- ======== END OF BOTTOM NAVBAR ======= -->
237
238 <HR>
239
240 </BODY>
241 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26