Exemple #1
0
 protected void PopulateIndex(UpdatableFullTextIndex <string> index)
 {
     foreach (var entry in WikipediaData.SampleData)
     {
         index.Index(entry.name, entry.text);
     }
 }
Exemple #2
0
 public void SetUp()
 {
     this.index = CreateNewIndex(4);
     this.PopulateIndex(this.index);
     this.legacyIndex = CreateLegacyIndex();
     this.PopulateIndex(this.legacyIndex);
 }
Exemple #3
0
        protected static UpdatableFullTextIndex <string> CreateLegacyIndex()
        {
            var index = new UpdatableFullTextIndex <string>
            {
                WordSplitter       = new XmlWordSplitter(new WordSplitter()),
                SearchWordSplitter = new WordSplitter(),
                QueryParser        = new LiftiQueryParser()
            };

            return(index);
        }