コード例 #1
0
ファイル: LuceneIndex.cs プロジェクト: cairabbit/daf
 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>();
 }
コード例 #2
0
ファイル: LuceneAnalyzers.cs プロジェクト: cairabbit/daf
        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;
        }