mirror of https://github.com/kiwix/libkiwix.git
Fixed extern compile (static) on linux and removed Clucene dependency
This commit is contained in:
parent
8bb7c040b1
commit
fcf84811c6
|
@ -36,7 +36,7 @@ using namespace std;
|
||||||
|
|
||||||
namespace kiwix {
|
namespace kiwix {
|
||||||
|
|
||||||
enum supportedIndexType { UNKNOWN, XAPIAN, CLUCENE };
|
enum supportedIndexType { UNKNOWN, XAPIAN };
|
||||||
|
|
||||||
class Book {
|
class Book {
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ namespace kiwix {
|
||||||
book.last = (std::string(bookNode.attribute("last").value()) != "undefined" ?
|
book.last = (std::string(bookNode.attribute("last").value()) != "undefined" ?
|
||||||
bookNode.attribute("last").value() : "");
|
bookNode.attribute("last").value() : "");
|
||||||
book.indexPath = bookNode.attribute("indexPath").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.title = bookNode.attribute("title").value();
|
||||||
book.description = bookNode.attribute("description").value();
|
book.description = bookNode.attribute("description").value();
|
||||||
book.language = bookNode.attribute("language").value();
|
book.language = bookNode.attribute("language").value();
|
||||||
|
@ -152,8 +152,6 @@ namespace kiwix {
|
||||||
if (!itr->indexPath.empty() || !itr->indexPathAbsolute.empty()) {
|
if (!itr->indexPath.empty() || !itr->indexPathAbsolute.empty()) {
|
||||||
if (itr->indexType == XAPIAN)
|
if (itr->indexType == XAPIAN)
|
||||||
bookNode.append_attribute("indexType") = "xapian";
|
bookNode.append_attribute("indexType") = "xapian";
|
||||||
else if (itr->indexType == CLUCENE)
|
|
||||||
bookNode.append_attribute("indexType") = "clucene";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!itr->title.empty())
|
if (!itr->title.empty())
|
||||||
|
|
Loading…
Reference in New Issue