Fixed extern compile (static) on linux and removed Clucene dependency

This commit is contained in:
rgaudin 2013-12-09 10:51:06 +00:00
parent 8bb7c040b1
commit fcf84811c6
2 changed files with 54 additions and 56 deletions

View File

@ -36,7 +36,7 @@ using namespace std;
namespace kiwix {
enum supportedIndexType { UNKNOWN, XAPIAN, CLUCENE };
enum supportedIndexType { UNKNOWN, XAPIAN };
class Book {

View File

@ -48,7 +48,7 @@ namespace kiwix {
book.last = (std::string(bookNode.attribute("last").value()) != "undefined" ?
bookNode.attribute("last").value() : "");
book.indexPath = bookNode.attribute("indexPath").value();
book.indexType = (std::string(bookNode.attribute("indexType").value()) == "xapian" ? XAPIAN : CLUCENE);
book.indexType = XAPIAN;
book.title = bookNode.attribute("title").value();
book.description = bookNode.attribute("description").value();
book.language = bookNode.attribute("language").value();
@ -152,8 +152,6 @@ namespace kiwix {
if (!itr->indexPath.empty() || !itr->indexPathAbsolute.empty()) {
if (itr->indexType == XAPIAN)
bookNode.append_attribute("indexType") = "xapian";
else if (itr->indexType == CLUCENE)
bookNode.append_attribute("indexType") = "clucene";
}
if (!itr->title.empty())