title: Elastic Search completion suggester configuration
body: <p>I'm trying to set autocomplete/suggestions on my site's search form, using Elastic Search's <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-completion.html" rel="nofollow">completion suggester</a> feature.</p>
  
  <p>I have a list of products, which are grouped by categories (on multiple levels). The search feature should be able to suggest category names, which are of more interest to users than direct products.<br>
  Several of these categories have the same name but a different parent (e.g. '<em>milk</em>' under parent category '<em>dairy products</em>' and '<em>milk</em>' under category '<em>baby</em>'). When the user selects a category suggestion, she's redirected to another page, with more specific results than mere search method.</p>
  
  <p>Additional metadata (url to redirect to, parent category id/name) are added in the <code>payload</code> field.</p>
  
  <p>I use the <code>output</code> field to return normalized suggestions for different inputs. As stated in the documentation: </p>
  
  <blockquote>
    <p>"The result is de-duplicated if several documents have the same output,
    i.e. only one is returned as part of the suggest result."</p>
  </blockquote>
  
  <p>But as explained, my outputs may have the same value, while being different results, as they will link to different pages. It is also possible in the future that different category levels will yield different actions.  </p>
  
  <p>I am reluctant to differentiate things by adding the full string (i.e. <em>"milk in dairy products"</em>) as the output, because:</p>
  
  <p><strong>1.</strong> The parent category is conceptually not the output itself but a related metadata.<br>
  <strong>2.</strong> I intend to have some formatting in the results, this forces me to parse the output string to add HTML tags in it.</p>
  
  <p>So, is it possible to deactivate the de-duplication?</p>
  
  <p>One workaround I'm thinking of if it's not possible is to store a stringified json object in the output, with all the data 'll need, both the one displayed in the search form and the metadata currently in the payload. But Id' rather look into existing configuration before resorting to that.</p>