Fix masking of bits in serialised query
[xapian.git] / xapian-applications / omega / expand.h
bloba050a4c1fbe220570809c76aa0bab59e0c7d0e35
1 /** @file expand.h
2 * @brief Set the expansion scheme for Omega
3 */
4 /* Copyright (C) 2009 Olly Betts
5 * Copyright (C) 2013 Aarsh Shah
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef OMEGA_INCLUDED_EXPAND_H
23 #define OMEGA_INCLUDED_EXPAND_H
25 #include <xapian.h>
27 #include <string>
28 #include <map>
30 #ifndef XAPIAN_AT_LEAST
31 #define XAPIAN_AT_LEAST(A,B,C) \
32 (XAPIAN_MAJOR_VERSION > (A) || \
33 (XAPIAN_MAJOR_VERSION == (A) && \
34 (XAPIAN_MINOR_VERSION > (B) || \
35 (XAPIAN_MINOR_VERSION == (B) && XAPIAN_REVISION >= (C)))))
36 #endif
38 #if !XAPIAN_AT_LEAST(1,3,2)
39 extern double expand_param_k;
40 #endif
42 void set_expansion_scheme(Xapian::Enquire & enq,
43 const std::map<std::string, std::string> & opt);
45 #endif // OMEGA_INCLUDED_EXPAND_H