Esempio n. 1
0
        public override void Process(ArchiverData t)
        {
            WFLogger.NLogger.Debug("Starting to process: " + t.DocumentToProcess);
            string     text   = File.ReadAllText(t.DocumentToProcess);
            List <Tag> fields = Flatten.Go(new Tag(text));

            SaveToLucene.Save(fields, t.ArchiveLocation);
        }
Esempio n. 2
0
 private static void Go(Tag node, List <Tag> toList)
 {
     toList.Add(node);
     foreach (Tag tag in node.InnerTags)
     {
         Flatten.Go(tag, toList);
     }
 }