kasyk - perform a query on a local or remote Kasyk index
kasyk [options] indexdir | [host:]port [query]
The 'kasyk' executable provides a raw interface to the searching of a local Kasyk index or a remotely running 'kasykd' or 'kasykcqd' server. The Kasyk query XML is either specified as a local file or streamed on standard input (STDIN). The Kasyk hitlist XML is sent to standard output (STDOUT), regardless of whether a local or a remote Kasyk index was queried.
From a performance point of view it is not advisable to use the 'kasyk' executable directly. It is better to use the Kasyk server (kasykd) or the Kasyk caching query server (kasykcqd) instead. The Kasyk searcher (kasyk) executable is provided nonetheless for two reasons. First, it is used by Kasyk caching query server (kasykcqd) for "ad hoc" Kasyk servers. And secondly, it can be used from the command line for debugging and testing of Kasyk query XML and Kasyk hitlist XML.
The first parameter is not optional. It either specifies the name of a local Kasyk index directory to be searched, or it indicates a remote host:port or a local port specification of a Kasyk server that should process the query.
The second parameter is optional. It specifies the filename that contains the Kasyk query XML of one or more queries. If it is not specified, one (or more) queries are read from standard input (STDIN).
The result of the query, which consists of Kasyk hitlist XML, is sent to standard output (STDOUT).
Queries should always conform to Kasyk query XML. The resulting hitlist will always conform to Kasyk hitlist XML. Any Kasyk index must have been created with Kasyk initializer (kasyknew) previously and must have had documents indexed into it with Kasyk indexer (kasykindex).
$ kasyk localindex searchit >result <ENTER> $
Query the Kasyk index "localindex" with the query that is stored in the file "searchit" and store the hitlist in file "result".
$ kasyk localindex >result <ENTER> <kasyk:query>what I want to find</kasyk:query> <ENTER> $
Query the Kasyk index "localindex" and store the resulting hitlist in file "result". Obtain the query interactively from the user.
$ kasyk myserver.domain.com:3333 searchfor <ENTER> <kasyk:hitlist xmlns:kasyk="http://www.kasyk.org/1.0"> <header ..... >....</header> <hit ordinal="1">....</hit> : <hit ordinal="1000">....</hit> </kasyk:hitlist> $
Query the remote Kasyk index running as a server on the host named "myserver.domain.com" that is listening on port "3333" with the query stored in file "searchfor". Output the resulting hitlist on standard output (STDOUT).
Kasyk home, Kasyk configuration XML, Kasyk query XML, Kasyk hitlist XML, Kasyk initializer (kasyknew), Kasyk indexer (kasykindex), Kasyk server (kasykd), Kasyk caching query server (kasykcqd).
See http://www.kasyk.nl/program/kasyk.html for the most up-to-date version of this information.
See http://www.kasyk.nl/bugs/kasyk.html for the most up-to-date information about known bugs for 'kasyk'.
Exit status is normally 0. Exit status 1 indicates a problem of some sort with an error message sent to STDERR and any active logfile.
Copyright © 2003 Dijkmat BV
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Kasyk Program Information: Kasyk version 1.0.0, generated on Tue Nov 25 12:09:47 2003.