Exemplo n.º 1
0
 private static int GetDelimiterIndex(string token)
 {
     for (int i = 0; i < token.Length; i++)
     {
         if (TextDocParser.isDelimiter(token[i]))
         {
             return(i);
         }
     }
     return(-1);
 }
Exemplo n.º 2
0
        public void  Initialize()
        {
            #region Preconditions
            if (_textParser != null)
            {
                throw new InvalidOperationException("FillTextIndexer.Initialize() is invoked twice");
            }
            #endregion Preconditions

            _textParser = new TextDocParser();
            _suppTrace  = Core.SettingStore.ReadBool("TextIndexing", "SuppressTraces", false);

            CleanIndexTempFiles();
            LoadExistingIndices();
        }