projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for non-indexed texts
[SXSI/TextCollection.git]
/
TextCollectionBuilder.h
diff --git
a/TextCollectionBuilder.h
b/TextCollectionBuilder.h
index
1eb0275
..
6b3819a
100644
(file)
--- a/
TextCollectionBuilder.h
+++ b/
TextCollectionBuilder.h
@@
-24,6
+24,8
@@
#include "TextCollection.h"
#include "TextStorage.h"
#include "Tools.h" // Defines ulong and uchar.
#include "TextCollection.h"
#include "TextStorage.h"
#include "Tools.h" // Defines ulong and uchar.
+
+#include <string>
#include <vector>
#include <utility> // Defines std::pair.
#include <cstring> // Defines std::strlen, added by Kim
#include <vector>
#include <utility> // Defines std::pair.
#include <cstring> // Defines std::strlen, added by Kim
@@
-59,8
+61,12
@@
namespace SXSI
* Can not be called after makeStatic().
* The i'th text insertion gets an identifier value i-1.
* In other words, document identifiers start from 0.
* Can not be called after makeStatic().
* The i'th text insertion gets an identifier value i-1.
* In other words, document identifiers start from 0.
+ *
+ * Second parameter tells if the text will be added to the
+ * index also. If false, text is added only to the TextCollection
+ * and can not be searched for.
*/
*/
- void InsertText(uchar const *);
+ void InsertText(uchar const *
, bool index = true
);
/**
* Make static
*
/**
* Make static
*
@@
-73,6
+79,7
@@
namespace SXSI
TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
private:
TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
private:
+ // Using Pimpl idiom to hide RLCSA implementation.
struct TCBuilderRep * p_;
// No copy constructor or assignment
struct TCBuilderRep * p_;
// No copy constructor or assignment