20 using Lucene.Net.Documents;
24 namespace Lucene.Net.Demo
29 public static class HTMLDocument
31 internal static char dirSep = Path.DirectorySeparatorChar;
33 public static String Uid(FileInfo f)
42 public static String Uid2url(String uid)
44 var url = uid.Replace(
'\u0000',
'/');
45 return url.Substring(0, (url.LastIndexOf(
'/')) - (0));
67 using (var fileStream = f.OpenRead())
73 doc.
Add(
new Field(
"contents", parser.GetReader()));