title: How to tokenize star ('*')?
body: <p>I'm trying to write an analyzer that will also tokenize stars ('*').
  I've tried to write something like:</p>
  <pre><code>&quot;test_analyzer&quot;: { 
            &quot;type&quot;: &quot;pattern&quot;,
            &quot;pattern&quot;: &quot;\\W|_&quot;,
            &quot;flags&quot;: &quot;CASE_INSENSITIVE|COMMENTS&quot;
          }
  </code></pre>
  <p>This worked ok for most of the cases I'm interested in. However, in case I have star it simply ignores it.</p>
  <p>For example for:</p>
  <pre><code>GET test_index_06/_analyze 
  {
    &quot;analyzer&quot;: &quot;test_analyzer&quot;, 
    &quot;text&quot;:     &quot;other_table*&quot;
  }
  </code></pre>
  <p>I'm getting:</p>
  <pre><code>
  {
    &quot;tokens&quot; : [
      {
        &quot;token&quot; : &quot;other&quot;,
        &quot;start_offset&quot; : 0,
        &quot;end_offset&quot; : 5,
        &quot;type&quot; : &quot;word&quot;,
        &quot;position&quot; : 0
      },
      {
        &quot;token&quot; : &quot;table&quot;,
        &quot;start_offset&quot; : 6,
        &quot;end_offset&quot; : 11,
        &quot;type&quot; : &quot;word&quot;,
        &quot;position&quot; : 1
      }
    ]
  }
  </code></pre>
  <p>where I wanted to get also a token of *.</p>
  <p>Any ideas?</p>
  <p>edit:
  Also tried:</p>
  <pre><code>        &quot;test_analyzer&quot;: { 
            &quot;type&quot;: &quot;pattern&quot;,
            &quot;pattern&quot;: &quot;_|\\t|\\n|\\s|\\v &quot;,
            &quot;flags&quot;: &quot;CASE_INSENSITIVE&quot;
          }
  </code></pre>
  <p>but getting: [other, table*] instead of getting [other, table, *]</p>
  <p>Thanks,
  Regards
  Nir.</p>