Added deltavector for non-indexed texts
authornvalimak <nvalimak@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 12 Dec 2009 21:13:59 +0000 (21:13 +0000)
committernvalimak <nvalimak@3cdefd35-fc62-479d-8e8d-bae585ffb9ca>
Sat, 12 Dec 2009 21:13:59 +0000 (21:13 +0000)
git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/TextCollection@621 3cdefd35-fc62-479d-8e8d-bae585ffb9ca

TextCollectionBuilder.h

index 1eb0275..6b3819a 100644 (file)
@@ -24,6 +24,8 @@
 #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
@@ -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.
+         *
+         * 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
          *
@@ -73,6 +79,7 @@ namespace SXSI
         TextCollection * InitTextCollection(char type = TextStorage::TYPE_PLAIN_TEXT);
         
     private:
+        // Using Pimpl idiom to hide RLCSA implementation.
         struct TCBuilderRep * p_;
 
         // No copy constructor or assignment