1opentrep-searcher(1) OpenTREP opentrep-searcher(1)
2
3
4
6 opentrep-searcher - Command-line utility to parse travel requests
7
9 opentrep-searcher [--prefix] [-v|--version] [-h|--help] [-e|--error <
10 spelling error>] [-d|--xapiandb <Xapian-travel-database-path>]
11 [-t|--sqldbtype <SQL-database-type>] [-s|--sqldbconx <SQL-database-
12 connection-string>] [-l|--log <path-to-output-log-file>] [-y|--type
13 <search-type>] [-q|--query <search-query>]
14
16 opentrep-searcher is a small program to parse a travel request and
17 search through a Xapian-index
18
19 opentrep-searcher accepts the following options:
20
21 --prefix
22 Show the Opentrep installation prefix.
23
24 -v, --version
25 Print the currently installed version of Opentrep on the standard
26 output.
27
28 -h, --help
29 Produce that message and show usage.
30
31 -e, --error
32 Allowed spelling error distance (e.g., 3).
33
34 -d, --xapiandb <Xapian-travel-database-path>
35 Path (directory) to the Xapian travel database. The indexer creates,
36 or overwrites it when it already exists, the Xapian database. It
37 materialises as a collection of data files within a directory usually
38 named 'traveldb'.
39
40 -t, --sqldbtype <SQL-database-type>
41 SQL database type, e.g., nosql (no SQL database), sqlite, mysql
42
43 -s, --sqldbconx <SQL-database-connection-string>
44 SQL database connection string, e.g., ~/tmp/opentrep/sqlite_travel.db
45 (for SQLite3), 'db=trep_trep user=trep password=trep' (for MySQL)
46
47 -l, --log <path-to-output-log-file>
48 Path (absolute or relative) of the output log file.
49
50 -y, --type <search-type>
51 Type of search request (0 = full text, 1 = coordinates).
52
53 -q, --query <search-query>
54 Travel query word list (e.g. sna francicso rio de janero lso anglese
55 reykyavki), which should be located at the end of the command line
56 (otherwise, the other options would be interpreted as part of that
57 travel query word list).
58
59 See the output of the `opentrep-searcher --help' command for the
60 default options.
61
63 opentrep-indexer(1), opentrep-dbmgr(1), opentrep-config(1), opentrep-
64 library(3), pyopentrep(1)
65
67 Please report any bugs to http://github.com/trep/opentrep/issues
68
70 Copyright © 2009-2019 Denis Arnaud
71
72 See the COPYING file for more information on the (LGPLv2+) license, or
73 directly on Internet:
74 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
75
76
77
78Version 0.07.11 Mon Aug 1 2022 opentrep-searcher(1)