libept
|
00001 #ifndef EPT_TEXTSEARCH_EXTRAINDEXERS_H 00002 #define EPT_TEXTSEARCH_EXTRAINDEXERS_H 00003 00009 /* 00010 * Copyright (C) 2007 Enrico Zini <enrico@debian.org> 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 */ 00026 00027 #include <ept/textsearch/textsearch.h> 00028 00029 namespace ept { 00030 namespace debtags { 00031 class Debtags; 00032 } 00033 namespace textsearch { 00034 00035 struct AptTagsExtraIndexer : public TextSearch::ExtraIndexer 00036 { 00037 virtual void operator()(Xapian::Document& doc, const apt::PackageRecord& rec) const; 00038 }; 00039 00040 struct DebtagsExtraIndexer : public TextSearch::ExtraIndexer 00041 { 00042 const debtags::Debtags& debtags; 00043 DebtagsExtraIndexer(const debtags::Debtags& debtags) : debtags(debtags) {} 00044 virtual void operator()(Xapian::Document& doc, const apt::PackageRecord& rec) const; 00045 }; 00046 00047 } 00048 } 00049 00050 // vim:set ts=4 sw=4: 00051 #endif