title: How to index word with hyphen in Lucene?
body: <p>I have a StandardAnalyzer working which retrieves words and frequencies from a single document using a TermVectorMapper which is populating a HashMap.</p>
  
  <p>But if I use the following text as a field in my document, i.e. </p>
  
  <pre><code>addDoc(w, "lucene Lawton-Browne Lucene");
  </code></pre>
  
  <p>The word frequencies returned in the HashMap are:</p>
  
  <p>browne 1
  lucene 2
  lawton 1</p>
  
  <p>The problem is the words ‘lawton’ and ‘browne’. If this is an actual ‘double-barreled’ name, can Lucene recognise it as ‘Lawton-Browne’ where the name is actually a single word?</p>
  
  <p>I’ve tried combinations of:</p>
  
  <pre><code>addDoc(w, "lucene \”Lawton-Browne\” Lucene");
  </code></pre>
  
  <p>And single quotes but without success.</p>
  
  <p>Thanks</p>
  
  <p>Mr Morgan.</p>