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); }
private static void Go(Tag node, List <Tag> toList) { toList.Add(node); foreach (Tag tag in node.InnerTags) { Flatten.Go(tag, toList); } }