title: Newbie Lucene Problem with c# demo "The Type or Namespace 'StandardAnalyzer' could not be found"
body: <p>I'm trying to get the basic demo of Lucene.net (4.8.0-beta00012) to run.</p>
  <p><a href="http://lucenenet.apache.org/#quick-start" rel="nofollow noreferrer">http://lucenenet.apache.org/#quick-start</a></p>
  <p>I've created a new Forms App.</p>
  <p>Run <code>Install-Package Lucene.Net -Pre</code> and it's downloaded the nuget package.</p>
  <p>Copied and pasted all the demo sections: <em>Create an index and define a text analyzer</em>, <em>Add to the index</em>, <em>Construct a query</em>, and <em>Fetch the results</em>.</p>
  <p>Visual Studio popped up a load of missing assembly references so I clicked 'Potential Fixes' and let it add the using statements at the start.</p>
  <pre><code>using Lucene.Net.Documents;
  using Lucene.Net.Index;
  using Lucene.Net.Search;
  using Lucene.Net.Store;
  using Lucene.Net.Util;
  using System;
  using System.Windows.Forms;
  
  
  namespace Lucene_CS
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
              // Ensures index backwards compatibility
              var AppLuceneVersion = LuceneVersion.LUCENE_48;
  
              var indexLocation = @&quot;C:\Index&quot;;
              var dir = FSDirectory.Open(indexLocation);
  
              //create an analyzer to process the text
              var analyzer = new StandardAnalyzer(AppLuceneVersion);
  
              //create an index writer
              var indexConfig = new IndexWriterConfig(AppLuceneVersion, analyzer);
              var writer = new IndexWriter(dir, indexConfig);
  
  
              var source = new
              {
                  Name = &quot;Kermit the Frog&quot;,
                  FavoritePhrase = &quot;The quick brown fox jumps over the lazy dog&quot;
              };
              Document doc = new Document
              {
  
                  new StringField(&quot;name&quot;,
                      source.Name,
                      Field.Store.YES),
                  new TextField(&quot;favoritePhrase&quot;,
                      source.FavoritePhrase,
                      Field.Store.YES)
              };
  
              writer.AddDocument(doc);
              writer.Flush(triggerMerge: false, applyAllDeletes: false);
  
  
              // search with a phrase
              var phrase = new MultiPhraseQuery
              {
                  new Term(&quot;favoritePhrase&quot;, &quot;brown&quot;),
                  new Term(&quot;favoritePhrase&quot;, &quot;fox&quot;)
              };
  
              // re-use the writer to get real-time updates
              var searcher = new IndexSearcher(writer.GetReader(applyAllDeletes: true));
              var hits = searcher.Search(phrase, 20 /* top 20 */).ScoreDocs;
              foreach (var hit in hits)
              {
                  var foundDoc = searcher.Doc(hit.Doc);
                  hit.Score.Dump(&quot;Score&quot;);
                  foundDoc.Get(&quot;name&quot;).Dump(&quot;Name&quot;);
                  foundDoc.Get(&quot;favoritePhrase&quot;).Dump(&quot;Favorite Phrase&quot;);
              }
  
  
  
  
          }
      }
  }
  </code></pre>
  <p>Now I am left with a couple that won't resolve:</p>
  <pre><code>   var analyzer = new StandardAnalyzer(AppLuceneVersion);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/KDjNn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KDjNn.png" alt="enter image description here" /></a></p>
  <p>And .Dump</p>
  <pre><code>  hit.Score.Dump(&quot;Score&quot;);
    foundDoc.Get(&quot;name&quot;).Dump(&quot;Name&quot;);
    foundDoc.Get(&quot;favoritePhrase&quot;).Dump(&quot;Favorite Phrase&quot;);
  </code></pre>
  <p><a href="https://i.stack.imgur.com/8LEIe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8LEIe.png" alt="enter image description here" /></a></p>
  <p>How would I go about debugging this to determine how to specify the references correctly?</p>
  <p>UPDATE WITH <code>namespace Lucene.Net.Analysis.Standard</code></p>
  <p><a href="https://i.stack.imgur.com/niyRT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/niyRT.png" alt="enter image description here" /></a></p>