title: Mongodb atlas search: how to make use of multiple analyzers for the same query string, so as to return atleast some result
body: <p>So the problem statement is - I am using atlas search for searching product data and have product details in multiple languages. For which, I have used <strong>multi analyzer</strong> and defined <em>standard</em> and corresponding <em>language</em> analyzer on the same field, so as to get the matching products in any of the case. The requirement is, since it's a product search I need to return atleast some suggestions for users to have a look at and get to the product via returned search results. Here is the mapping I have used after having researched for how to apply multiple analyzers on a single field :</p>
  <pre><code>{
    &quot;mappings&quot;: {
      &quot;dynamic&quot;: false,
      &quot;fields&quot;: {
        &quot;name&quot;: {
          &quot;type&quot;: &quot;string&quot;,
          &quot;analyzer&quot;: &quot;lucene.standard&quot;,
          &quot;multi&quot;: {
            &quot;german&quot;: {                //german is the name that I have given to this analyzer
              &quot;analyzer&quot;: &quot;lucene.german&quot;,
              &quot;type&quot;: &quot;string&quot;
            },
            &quot;french&quot;: {                //french is the name that I have given to this analyzer
              &quot;analyzer&quot;: &quot;lucene.french&quot;,
              &quot;type&quot;: &quot;string&quot;
            }
          }
        }
      }
    }
  }
  </code></pre>
  <p>Now, what I want is - if I am searching for a word in english or german or french, I must get a result. Which also is fine with this mapping, I am getting results for all the three languages. But the usecase is, I want result in any of these cases:</p>
  <ul>
  <li>Search string is in English, German or French</li>
  <li>Search string is fuzzy (has spelling mistakes)</li>
  <li>Search string has any special characters or whitespaces</li>
  <li>Search string can be considered as a whole term and results can be returned on the basis of that.</li>
  </ul>
  <p>All the above requirements makes me to use all analyzers - standard, keyword, language, whitespace and simple. But this is increasing index size to more than 3KB (which is an upper limit) plus I am not getting result even for the mapping I have currently where I have applied only language and standard analyzer.</p>