title: Umbraco Lucene search for auto complete
body: <p>How do I modify search to be able hit my searchString?</p>
  
  <p>I have variables with following values:</p>
  
  <pre><code>fieldName: nodeName
  searchString: des
  </code></pre>
  
  <p>I want to be able to find a nodeName by any contiguous characters in it: e.g. find <code>Esa selects Ariane 6 basic design</code> by entering <code>design</code>.</p>
  
  <p>My current search is constructed as:</p>
  
  <pre><code> var searchCriteria = SearchProvider.CreateSearchCriteria(BooleanOperation.Or);
  
   var luceneString = string.Format("{0}:", fieldName);
   luceneString += "(+" + searchString.Replace(" ", " +") + ")^10 ";
   luceneString += string.Format("{0}:{1}", fieldName, searchString);
   var rawQuery = searchCriteria.RawQuery(luceneString).Field(fieldName, searchString.Fuzzy(0.8f));
  </code></pre>
  
  <p>My Examine definition:</p>
  
  <pre><code>&lt;add name="AutoCompleteLookupIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
             supportUnpublished="true"
             supportProtected="true"
            analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" /&gt;
  </code></pre>
  
  <p></p>