Example #1
0
 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>();
 }
Example #2
0
        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;
        }