Lucene.Net.Facet.TestMultipleIndexFields.seedIndex C# (CSharp) Method

seedIndex() private static method

private static seedIndex ( ITaxonomyWriter tw, RandomIndexWriter iw, Lucene.Net.Facet.FacetsConfig config ) : void
tw ITaxonomyWriter
iw RandomIndexWriter
config Lucene.Net.Facet.FacetsConfig
return void
        private static void seedIndex(ITaxonomyWriter tw, RandomIndexWriter iw, FacetsConfig config)
        {
            foreach (FacetField ff in CATEGORIES)
            {
                Document doc = new Document();
                doc.Add(ff);
                doc.Add(new TextField("content", "alpha", Field.Store.YES));
                iw.AddDocument(config.Build(tw, doc));
            }
        }
    }