public LuceneIndex(string typeName, string indexDir, IDocumentBuilder docBuilder, IIndexPathBuilder pathBuilder, LN.Util.Version version) { this.TypeName = typeName; this.Directory = indexDir; this.version = version; this.DocumentBuilder = docBuilder; this.IndexPathBuilder = pathBuilder; indexPaths = new Dictionary<string, LuceneIndexPath>(); }
public static Analyzer CreateAnalyzer(string analyzerName, LN.Util.Version version) { Analyzer analyzer = null; if (string.IsNullOrEmpty(analyzerName)) analyzerName = "standard"; switch (analyzerName.ToLower()) { case "standard": default: analyzer = new StandardAnalyzer(version); break; } return analyzer; }