2 * @brief Main header for omega
4 /* Copyright 1999,2000,2001 BrightStation PLC
5 * Copyright 2001 Lemur Consulting Ltd
6 * Copyright 2001,2002 Ananova Ltd
7 * Copyright 2002,2003,2006,2007,2008,2015,2016 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
25 #ifndef OMEGA_INCLUDED_OMEGA_H
26 #define OMEGA_INCLUDED_OMEGA_H
30 #define PROGRAM_NAME "omega"
32 #include "configfile.h"
39 extern string fmtname
;
40 extern string filters
;
42 // What $filters produced in Omega < 1.3.4 - we check this too for backward
44 extern string old_filters
;
46 extern Xapian::Database db
;
47 extern Xapian::Enquire
* enquire
;
49 extern Xapian::docid hits_per_page
;
50 extern Xapian::docid min_hits
;
54 extern Xapian::MultiValueKeyMaker
* sort_keymaker
;
55 extern Xapian::valueno sort_key
;
56 extern bool reverse_sort
;
57 extern bool sort_after
;
58 extern Xapian::Enquire::docid_order docid_order
;
60 extern Xapian::valueno collapse_key
;
63 extern map
<string
, string
> option
;
65 extern bool set_content_type
, suppress_http_headers
;
67 #endif // OMEGA_INCLUDED_OMEGA_H