title: Cannot search string in elastic search after adding synonym
body: <p>I have implemented synonym in elasticsearch but now i am facing problem. Whole string is splited on whitespace and i can not search with "see all result option".
  Here is my settings.</p>
  
  <pre><code>$indexSettings['analysis']['analyzer'] = array(
              'std' =&gt; array( // Will allow query 'shoes' to match better than 'shoe' which the stemmed version
                  'tokenizer' =&gt; 'standard',
                  'char_filter' =&gt; 'html_strip', // strip html tags
                  'filter' =&gt; array('standard', 'elision', 'asciifolding', 'lowercase', 'stop', 'length'),
              ),
              'keyword' =&gt; array(
                  'tokenizer' =&gt; 'keyword',
                  'filter' =&gt; array('asciifolding', 'lowercase'),
              ),
              'keyword_prefix' =&gt; array(
                  'tokenizer' =&gt; 'keyword',
                  'filter' =&gt; array('asciifolding', 'lowercase', 'edge_ngram_front'),
              ),
              'text_prefix' =&gt; array(
                  'tokenizer' =&gt; 'standard',
                  'char_filter' =&gt; 'html_strip', // strip html tags
                  'filter' =&gt; array('standard', 'elision', 'asciifolding', 'lowercase', 'stop', 'edge_ngram_front'),
              ),
              'text_suffix' =&gt; array(
                  'tokenizer' =&gt; 'standard',
                  'char_filter' =&gt; 'html_strip', // strip html tags
                  'filter' =&gt; array('standard', 'elision', 'asciifolding', 'lowercase', 'stop', 'edge_ngram_back'),
              ),
              'synonym' =&gt; array(
                  'tokenizer' =&gt; 'standard',
                  'type' =&gt; 'custom',
                  'char_filter' =&gt; 'html_strip', // strip html tags
                  'filter' =&gt; array('standard','synonym', 'elision', 'asciifolding', 'kstem', 'length','snowball' ,'lowercase', 'stop',)
              ),
  
          );
          $indexSettings['analysis']['filter'] = array(
              'edge_ngram_front' =&gt; array(
                  'type' =&gt; 'edgeNGram',
                  'min_gram' =&gt; 2,
                  'max_gram' =&gt; 10,
                  'side' =&gt; 'front',
              ),
              'edge_ngram_back' =&gt; array(
                  'type' =&gt; 'edgeNGram',
                  'min_gram' =&gt; 2,
                  'max_gram' =&gt; 10,
                  'side' =&gt; 'back',
              ),
              'stop' =&gt; array(
                  'type' =&gt; 'stop',
                  'stopwords' =&gt; '_none_',
              ),
              'length' =&gt; array(
                  'type' =&gt; 'length',
                  'min' =&gt; 2,
              ),
              'synonym' =&gt; array(
                  'type' =&gt; 'synonym',
                  'expand' =&gt; true,
                  'synonyms_path' =&gt; 'synonyms.txt',
              ),
          );
           $properties[$key]['analyzer'] = 'synonym';
  </code></pre>
  
  <p>In dropdown i give 5 result to show and one option see all result.
  On searching of "Anti Ssl like protein" this word i got q=Anti ssl="" like="" protein="" in anchor tag of see all result.Cant get full word with see all result option.</p>