poliqarpd
poliqarpd — the Poliqarp server
poliqarpd
{ -h
| --help
| -v
| --version
}
poliqarpd
[
-g
| --gui
] [
-d
| --detach
] [
{ -c
| --config-file
}
file
]
-h
, --help
Display help and exit.
-v
, --version
Output version information and exit.
-g
, --gui
GUI mode: cause the server to terminate when the session counter drops down to zero for the first time.
-d
, --detach
After poliqarpd is ready to accept connections, detach from the controlling terminal and run in the background.
-c
, --config-file=file
Use the given file
as a configuration file. The default is:
$HOME/.poliqarp/poliqarpd.conf
(under Unix) or
poliqarpd.conf
in the current directory (under Windows).
Empty lines and lines starting with #
are comments. Otherwise a line is of the format
keyword
=
setting
.
The possible keywords and their meanings are as follows:
hostname
Specifies the local address that poliqarpd listens on. The default address is 127.0.0.1
.
New in poliqarpd 1.3.1.
port
Specifies the TCP port number that poliqarpd listens on. 0 means any port. Ports 1-1023 are normally reserved to superuser. Ports 1024-65536 should be available to anyone. The default port is 4567.
logging
on
Enables server activity logging.
off
Disables server activity logging.
The default value is off
.
log-file
Specifies the log file name. The default is poliqarpd.log
in the current
directory.
match-buffer-size
Specifies the initial size of match buffer (i.e., maximum number of stored results). The default value is 1000. The maximum value is 50000.
max-match-length
Restricts the match length to the specified number of segments. The maximum and the default values are 1000.
New in poliqarpd 1.3.2.
max-session-idle
Restricts life-time of an idle session to the specified number of seconds. The default value is 1200 (i.e. 20 minutes). The maximum value is 86400 (i.e. 24 hours).
corpus
New in poliqarpd 1.3.2.
any
Allows one to open any corpus in the file system.
This is the default if no other corpus
settings are present.
corpus-id
:
base-name
Allows one to open the base-name
corpus using the
corpus-id
.
Under the hood, the corpus will be opened at poliqarpd startup and never closed.
As of poliqarpd 1.3.1, the only supported binary format version is 2. Please use bpupgrade(1) to convert your corpora.
PING
Server replies:
R PONG
GET-VERSION
Server replies:
Rserver-version
(sakurasakura-version
)
For this version,
=
server-version
=
sakura-version
1.3.14
.
This command was renamed from VERSION
in poliqarpd 1.3.7.
GET-LAST-ERROR
If no error was recorded, server replies:
R NOERROR
Otherwise, it replies:
R ERROR error-message
New in poliqarpd 1.2.
MAKE-SESSION session-name
Create a new session. Server replies:
R OK session-id
RESUME-SESSION session-id
session-name
Resume the previously suspended session, identified by
.
session-id
This command was renamed from RECONNECT
in poliqarpd 1.3.7.
CLOSE-SESSION
Close the current session.
SUSPEND-SESSION
Explicitly suspend the current session.
Every open session is implicitly suspended if the TCP connection is terminated. However, suspending the session explicitly, gives the client a chance to receive pending asynchronous messages, which would otherwise be lost.
New in poliqarpd 1.3.1.
OPEN-CORPUS base-name
This command was renamed from OPEN
in poliqarpd 1.3.7.
OPEN-CORPUS corpus-id
Possibility to open pre-defined corpora was added in poliqarpd 1.3.2.
This command was renamed from OPEN
in poliqarpd 1.3.7.
CLOSE-CORPUS
This command was renamed from CLOSE
in poliqarpd 1.3.7.
GET-CORPUS-STATS
This command was renamed from CORPUS-STATS
in poliqarpd 1.3.7.
GET-METADATA-TYPES
This command was renamed from METADATA-TYPES
in poliqarpd 1.3.7.
GET-TAGSET
Server replies:
R OKnumber-of-categories
number-of-grammatical-classes
Rdescription-of-category-1
…
Rdescription-of-category-N
Rdescription-of-class-1
Rdescription-of-class-2
…
Rdescription-of-class-M
where
is of the form
description-of-category
and category-name
attr-1
attr-2
…
is of the form
description-of-class
where class-name
category-1
category-2
…
are names of the appropriate categories, in square
brackets if the category is optional.
category-X
New in poliqarpd 1.2.
GET-JOB-STATUS
This command was renamed from STATUS
in poliqarpd 1.3.7.
CANCEL-JOB
This command was renamed from CANCEL
in poliqarpd 1.3.7.
MAKE-QUERY query
RUN-QUERY
SORT-RESULTS criteria
This command was renamed from SORT
in poliqarpd 1.3.7.
GET-COLUMN-TYPES
New in poliqarpd 1.2.
GET-BUFFER-STATE
Server replies R OK
.
capacity
num-stored-results
This command was renamed from BUFFER-STATE
in poliqarpd 1.3.7.
GET-NUM-RESULTS
Server replies R OK
.
num-spotted-results
New in poliqarpd 1.3.7.
BUFFER-SHIFT
Not implemented.
GET-RESULTS n
m
Changed in Poliqarp 1.2.
GET-CONTEXT n
GET-METADATA n
This command was renamed from GET-METADATA
in poliqarpd 1.3.7.
SET-OPTION option-name
option-setting
The following options are available:
left-context-width
, right-context-width
, wide-context-width
option-setting
is width of the left/right/wide context: in
segments or characters if followed by a letter c
.
retrieve-lemmata
, retrieve-tags
, retrieve-id
option-setting
is a 4-character binary string
,
indicating whether lemmata/tags/identifiers should be retrieved for left context
(l
L
R
r
l
), left match (L
), right match
(R
) and right context (r
).
retrieve-id
is new in poliqarpd 1.3.8.
notification-interval
query-flags
option-setting
is a 4-character binary string
indicating whether:
i
x
I
X
regular expressions in main (i
) and metadata (I
) parts shoule be case-insensitive by default;
regular expressions in main (x
) and metadata (X
) parts don't have to match the whole segments or metadata items by default.
The default is as if “SET query-flags 0011
” were run, i.e.:
regular expressions in the main part are case-sensitive;
regular expressions in the main part have to match the whole segments;
regular expressions in the metadata part are case-insensitive;
regular expressions in the metadata part don't have to match the whole metadata items.
disamb
rewrite
New in poliqarpd 1.3.3.
random-sample
New in poliqarpd 1.3.7.
This command was renamed from SET
in poliqarpd 1.3.7.
CREATE-ALIAS alias-name
alias-value
DELETE-ALIAS alias-name
GET-ALIASES
RESIZE-BUFFER n
This command was renamed from BUFFER-RESIZE
in poliqarpd 1.3.7.