title: Lucene.net searching
body: <p>I have created a lucene index using lucene.net with round about 300 documents of size 1mb each
  Now i am doing my searching technique
  My input for search tearm is
  i open a text file of 1mb size read all the text and give as input
  Here is my code</p>
  
  <pre><code>     public void DoClassification(string DocPath, string IndexPath)
      {
          try
          {
              if (File.Exists(DocPath))
              {
  
                  string content = File.ReadAllText(DocPath);
  
                  if (content.Trim() != "")
                  {
  
                      IndexSearcher searcher = new IndexSearcher(FSDirectory.Open(new DirectoryInfo(IndexPath)), false);
                      QueryParser parser = new QueryParser(Lucene.Net.Util.Version.LUCENE_29, "Content", new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29));
                      BooleanQuery.SetMaxClauseCount(Convert.ToInt32(content.Length) + 500);
                      Query query = parser.Parse(QueryParser.Escape(content.ToLower()));
                      TopDocs docs = searcher.Search(query, searcher.GetIndexReader().MaxDoc());
  
                      foreach (ScoreDoc DOC in docs.scoreDocs)
                      { 
                          string Tag = searcher.Doc(DOC.doc).Get("Content");
  
                          break;
                      }
  
                  }
  
  
  
              }
          }
          catch (Exception ex)
          {
  
              throw;
          }
  
  
      }
  </code></pre>
  
  <p>Now My question is that is the above searching query feasible for the type of search i want with input as the whole text file? Because when a file is large is takes time to search</p>
  
  <p>Thanks</p>