[ci] Fix netbsd job to upgrade existing packages
[xapian.git] / xapian-applications / omega / omega.h
blob070b9c66c3c4dc4e8f0a90a0a0dbabda4a611874
1 /** @file
2 * @brief Main header for omega
3 */
4 /* Copyright 1999,2000,2001 BrightStation PLC
5 * Copyright 2001 Lemur Consulting Ltd
6 * Copyright 2001,2002 Ananova Ltd
7 * Copyright 2002-2023 Olly Betts
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 * USA
25 #ifndef OMEGA_INCLUDED_OMEGA_H
26 #define OMEGA_INCLUDED_OMEGA_H
28 #include <xapian.h>
30 #define PROGRAM_NAME "omega"
32 #include "configfile.h"
34 #include <map>
35 #include <string>
37 extern std::string dbname;
38 extern std::string fmtname;
39 extern std::string filters;
41 // What $filters produced in Omega 1.4.x (starting with development version
42 // 1.3.4 in fact). We check this too for backward compatibility.
43 extern std::string old_filters;
45 extern Xapian::Database db;
46 extern Xapian::Enquire * enquire;
48 extern Xapian::docid hits_per_page;
49 extern Xapian::docid min_hits;
51 extern int threshold;
53 extern Xapian::MultiValueKeyMaker* sort_keymaker;
54 extern Xapian::valueno sort_key;
55 extern bool reverse_sort;
56 extern bool sort_after;
57 extern Xapian::Enquire::docid_order docid_order;
59 extern Xapian::valueno collapse_key;
60 extern bool collapse;
62 extern std::map<std::string, std::string> option;
64 extern bool set_content_type, suppress_http_headers;
66 #endif // OMEGA_INCLUDED_OMEGA_H