Lucene.Net.Search.TestSimpleFacetedSearch.SetUp C# (CSharp) Method

SetUp() private method

private SetUp ( ) : void
return void
        public void SetUp()
        {

            IndexWriter writer = new IndexWriter(_Dir, new StandardAnalyzer(Version.LUCENE_CURRENT), true, IndexWriter.MaxFieldLength.UNLIMITED);

            AddDoc(writer, "us", "CCN", "politics", "The White House doubles down on social media");
            AddDoc(writer, "us", "CCN", "politics", "Senate Dems fail to block filibuster over judicial nominee");
            AddDoc(writer, "us", "BCC", "politics", "A frozen pig's foot and a note laced with anti-Semitic rants were sent to Rep. Peter King's Capitol Hill office, a congressional source familiar with the situation confirmed to CNN Monday");
            AddDoc(writer, "us", "CCN", "sport", "But when all was said and done, Haslem's 13 points, five rebounds, two assists, one block and one steal in the course of 23 minutes");
            AddDoc(writer, "en", "CCN", "tech", "blockingQueue<T> contains two private fields and exposes two public methods.");
            AddDoc(writer, "en", "BCC", "tech", "An Argentine court this week granted an injunction that blocks the Internet giant from 'suggesting' searches that lead to certain sites that have been deemed anti-Semitic, and removes the sites from the search engine's index");
            AddDoc(writer, "en", "CCN", "dummy", "oooooooooooooooooooooo");
            writer.Close();

            _Reader = IndexReader.Open(_Dir, true);
        }