/[hyperestraier]/upstream/0.5.3/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

Annotation of /upstream/0.5.3/doc/japidoc/overview-summary.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Wed Aug 3 15:25:48 2005 UTC (18 years, 10 months ago) by dpavlin
File MIME type: text/html
File size: 9482 byte(s)
import of upstream 0.5.3

1 dpavlin 9 <!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 dpavlin 10 <!-- Generated by javadoc (build 1.4.2_06) on Mon Aug 01 00:51:52 JST 2005 -->
6 dpavlin 9 <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 dpavlin 10 <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 has never uncertified yet. 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 dpavlin 9
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 dpavlin 10 <p>Get the JAR file `<a href="http://hyperestraier.sourceforge.net/jar/">estraier.jar</a>' and make the classpath include the JAR file.</p>
107 dpavlin 9
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 dpavlin 10 // create the creator object
119     Creator creator = new CreatorImpl();
120 dpavlin 9 // create and configure the node connecton object
121 dpavlin 10 Node node = creator.create_node();
122 dpavlin 9 node.set_url("http://localhost:1978/node/test1");
123     node.set_auth("admin", "admin");
124     // create a document object
125 dpavlin 10 Document doc = creator.create_document();
126 dpavlin 9 // add attributes to the document object
127     doc.add_attr("@uri", "http://estraier.gov/example.txt");
128     doc.add_attr("@title", "Over the Rainbow");
129     // add the body text to the document object
130     doc.add_text("Somewhere over the rainbow. Way up high.");
131     doc.add_text("There's a land that I heard of once in a lullaby.");
132     // register the document object to the node
133     if(!node.put_doc(doc))
134     System.err.println("error: " + node.status());
135     }
136     }
137     </pre>
138    
139     <h2>Example of Searcher</h2>
140    
141     <p>The following is the simplest implementation of a searcher.</p>
142    
143     <pre style="margin: 0.5em 0.5em; padding: 0.1em 0.3em; border: 1pt solid #aaaaaa;">import estraier.*;
144    
145     public class NodeExample002 {
146     public static void main(String[] args){
147 dpavlin 10 // create the creator object
148     Creator creator = new CreatorImpl();
149 dpavlin 9 // create the node connecton object
150 dpavlin 10 Node node = creator.create_node();
151 dpavlin 9 node.set_url("http://localhost:1978/node/test1");
152     // create a search condition object
153 dpavlin 10 Condition cond = creator.create_condition();
154 dpavlin 9 // set the search phrase to the search condition object
155     cond.set_phrase("rainbow AND lullaby");
156     // get the result of search
157     NodeResult nres = node.search(cond, 0);
158     if(nres != null){
159     // for each document in the result
160     for(int i = 0; i &lt; nres.doc_num(); i++){
161     // get a result document object
162     ResultDocument rdoc = nres.get_doc(i);
163     // display attributes
164     System.out.println("URI: " + rdoc.attr("@uri"));
165     System.out.println("Title: " + rdoc.attr("@title"));
166     // display the snippet text
167     System.out.print(rdoc.snippet());
168     }
169     } else {
170     System.err.println("error: " + node.status());
171     }
172     }
173     }
174     </pre>
175    
176     <h2>License</h2>
177    
178     <div>Copyright (C) 2004-2005 Mikio Hirabayashi</div>
179     <div>All rights reserved.</div>
180    
181     <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
182    
183     <ul>
184     <li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
185     <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>
186     <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>
187     </ul>
188    
189     <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>
190     <P>
191    
192     <P>
193     <HR>
194    
195    
196     <!-- ======= START OF BOTTOM NAVBAR ====== -->
197     <A NAME="navbar_bottom"><!-- --></A>
198     <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
199     <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
200     <TR>
201     <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
202     <A NAME="navbar_bottom_firstrow"><!-- --></A>
203     <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
204     <TR ALIGN="center" VALIGN="top">
205     <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT>&nbsp;</TD>
206     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
207     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
208     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
209     <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
210     </TR>
211     </TABLE>
212     </TD>
213     <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
214     </EM>
215     </TD>
216     </TR>
217    
218     <TR>
219     <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
220     &nbsp;PREV&nbsp;
221     &nbsp;NEXT</FONT></TD>
222     <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
223     <A HREF="index.html" target="_top"><B>FRAMES</B></A> &nbsp;
224     &nbsp;<A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
225     &nbsp;<SCRIPT type="text/javascript">
226     <!--
227     if(window==top) {
228     document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
229     }
230     //-->
231     </SCRIPT>
232     <NOSCRIPT>
233     <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
234     </NOSCRIPT>
235    
236     </FONT></TD>
237     </TR>
238     </TABLE>
239     <A NAME="skip-navbar_bottom"></A>
240     <!-- ======== END OF BOTTOM NAVBAR ======= -->
241    
242     <HR>
243    
244     </BODY>
245     </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26