libept
axi.h
Go to the documentation of this file.
1 #ifndef EPT_TEXTSEARCH_TEXTSEARCH_H
2 #define EPT_TEXTSEARCH_TEXTSEARCH_H
3 
9 /*
10  * Copyright (C) 2007 Enrico Zini <enrico@debian.org>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25  */
26 
27 #include <xapian.h>
28 #include <string>
29 
30 namespace ept {
31 
46 namespace axi {
47 
48 // Allocate value indexes for known values
49 const Xapian::valueno VAL_APT_INSTALLED_SIZE = 1;
50 const Xapian::valueno VAL_APT_PACKAGE_SIZE = 2;
51 const Xapian::valueno VAL_POPCON = 10;
52 const Xapian::valueno VAL_ITERATING_RATING = 20;
53 const Xapian::valueno VAL_ITERATING_FUNCTIONALITY = 21;
54 const Xapian::valueno VAL_ITERATING_USABILITY = 22;
55 const Xapian::valueno VAL_ITERATING_SECURITY = 23;
56 const Xapian::valueno VAL_ITERATING_PERFORMANCE = 24;
57 const Xapian::valueno VAL_ITERATING_QUALITY = 25;
58 const Xapian::valueno VAL_ITERATING_SUPPORT = 26;
59 const Xapian::valueno VAL_ITERATING_ADOPTION = 27;
60 // If you need to index a value and cannot edit this file, feel free to use any
61 // value starting from 1000000
62 
64 std::string path_dir();
65 
67 std::string path_db();
68 
70 time_t timestamp();
71 
72 
78 {
79  std::string old;
80 public:
81  OverrideIndexDir(const std::string& path);
83 };
84 
85 }
86 }
87 
88 // vim:set ts=4 sw=4:
89 #endif