Changeset 887 for trunk/CrypCore


Ignore:
Timestamp:
Nov 22, 2009, 11:03:34 PM (12 years ago)
Author:
enkler
Message:

Updated SearchProvider

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        66TestResults
        77_ReSharper.CrypTool 2.0
         8*.exe
         9*.dll
         10bin
         11obj
  • trunk/CrypCore/SearchProvider.cs

    r879 r887  
    5050            var indexWriter = new IndexWriter(dir, analyzer, true, new IndexWriter.MaxFieldLength(25000));
    5151
    52             foreach (var File in Directory.GetFiles(HelpFilePath))
     52            foreach (var File in Directory.GetFiles(HelpFilePath,"*.xaml"))
    5353            {
    5454                var text = GetTextFromXaml(File).Replace("\r\n"," ").Replace("\n"," ");
     
    5656
    5757                var fldContent = new Field(ContentField, text, Field.Store.YES, Field.Index.TOKENIZED,
    58                               Field.TermVector.WITH_POSITIONS_OFFSETS);
     58                              Field.TermVector.WITH_OFFSETS);
    5959                var fldName = new Field(PluginField, Path.GetFileNameWithoutExtension(Path.GetFileName(File)), Field.Store.YES, Field.Index.NO,
    6060                              Field.TermVector.NO);
Note: See TracChangeset for help on using the changeset viewer.