title: Elasticsearch NEST create case-insensitive index
body: <p>How can I create an index in NEST which compares case-insensitive with TermQuery?</p>
  
  <p>I tried following (and many similar approaches) but my TermQuery only returns case-sensitive matching results.</p>
  
  <pre><code>Client.CreateIndex("my_index", (c) =&gt; c
      .Settings(s =&gt; s
          .Analysis(an =&gt; an
              .Analyzers(ans =&gt; ans
                  .Custom("analyzer_keyword", cu =&gt; cu
                      .Tokenizer("keyword")
                      .Filters("lowercase")
                   )
                  .Custom("analyzer_term", cu =&gt; cu
                      .Tokenizer("term")
                      .Filters("lowercase")
                   )
              )
          )
      )
  );
  </code></pre>