00001 #ifndef LUX_API_INDEXER_H 00002 #define LUX_API_INDEXER_H 00003 00004 #include "lux/lux.h" 00005 #include "engine.h" 00006 00007 namespace Lux { 00008 00009 class Document; 00010 00014 class Indexer { 00015 00016 public: 00021 Indexer(Engine &engine); 00025 ~Indexer(); 00031 void set_index_buffer_threshold(uint32_t mega_bytes); 00036 bool add(Document &doc); 00041 bool add(Document *doc); 00047 bool del(Document &doc); 00053 bool del(Document *doc); 00054 00055 private: 00056 Engine engine_; 00057 uint32_t index_buffer_threshold_; 00058 }; 00059 } 00060 00061 #endif