source: SRUServer/trunk/README.txt @ 2702

Last change on this file since 2702 was 2702, checked in by oschonef, 11 years ago
  • add CLARIN Maven repository to POM (for cql-java.jar)
  • remove bundled cql-java.jar
  • update README.txt
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 2.7 KB
Line 
1ABSTRACT:
2---------
3This package implements the server-side part of the SRU/CQL protocol (SRU/S)
4and conforms to SRU version 1.1 and 1.2. The library will handle most of the
5protocol related tasks for you and you'll only need to implement a few classes
6to connect you search engine. However, the library will not save you from
7doing your SRU/CQL homework (i.e. you'll need to have at least some
8understanding of the protocol and adhere to the protocol semantics).
9Furthermore, you need to have at least some basic understanding of Java web
10application development (Servlets in particular) to use this library.
11
12More Information about SRU/CQL:
13  http://www.loc.gov/standards/sru/
14Forthcoming standardization of SRU/CQL 2.0 (includes description of 1.2)
15  http://www.loc.gov/standards/sru/oasis/ 
16
17
18HOW TO USE:
19-----------
20The implementation is designed to make very minimal assumptions about the
21environment it's deployed in. For interfacing with your search engine, you
22need to implement the SRUSearchEngine interface. At minimum, you'll need
23to implement at least the search() method. Please check the Java API
24documentation for further details about this interface.
25The SRUServer implements the SRU protocol an used your supplied search engine
26implementation to talk to your search engine. The SRUServer is configured
27using a SRUServerConfig instance. The SRUServerConfig reads an XML document,
28which contains the (static) server configuration. It must conform to the
29"sru-server-config.xsd" schema in the "src/main/resources/META-INF" directory.
30You can either write your own Servlet implementation to drive the SRUServer or
31can use supplied SRUServerServlet from the "de.clarin.sru.server.utils"
32package. If you do so, your search engine needs to inherit from the abstract
33class SRUSearchEngineBase. Check the Java API documentation (and the code) of
34these classes for more information.
35Of course, you can use frameworks like Spring or similar to assemble your
36web application.
37An usage example for this library is available from:
38  http://clarin.ids-mannheim.de/downloads/clarin/
39NB: you cannot deploy and use it, because it uses internal IDS services, but
40it should give you a basic idea how to use the library.
41
42
43HOW TO BUILD:
44-------------
451. Build the library with the following command:
46$ mvn package
47
482a. Either install the artifact in your own repository with the following
49    command, if you use Maven for you project:
50$ mvn install
51
522b. Or use the "sru-server-$VERSION.jar" file created within the
53    "target/" directory, if you do not use Maven for your project.
54
55The Java API documentation is created within the "target/apidocs" directory
56and is also zipped up into the "sru-server-$VERSION-javadoc.jar" archive.
Note: See TracBrowser for help on using the repository browser.