AzureDirectoryTests.IntegrationTests.SearchForPhrase C# (CSharp) Method

SearchForPhrase() static private method

static private SearchForPhrase ( IndexSearcher searcher, string phrase ) : int
searcher Lucene.Net.Search.IndexSearcher
phrase string
return int
        static int SearchForPhrase(IndexSearcher searcher, string phrase)
        {
            var parser = new Lucene.Net.QueryParsers.QueryParser(Lucene.Net.Util.Version.LUCENE_30, "Body", new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_30));
            var query = parser.Parse(phrase);
            return searcher.Search(query, 100).TotalHits;
        }