title: How to practially use a keywordanalyzer in azure-search?
body: <p>a little relating and continuing to this question:
  <a href="https://stackoverflow.com/questions/34303438/azure-search-analyzer/34304353#34304353">Azure Search Analyzer</a></p>
  
  <p>I want to use a keywordanalyzer for word collections.</p>
  
  <p>We have documents (products) with different fields like product_name, brand, categorie and so on. <br>
  To implement a keyword based ranking (scoring) I would like to add a Collection(Edm.String) field which contains different (untokenized!!) keywords, like: "brown teddy" or "green bean". <br>
  To achieve this I thought about using a keywordanalyzer with the following definition:</p>
  
  <blockquote>
    <p><em>// field definition:</em> <br>
    {<br>
            "name": "keyWordList",<br>
            "type": "Collection(Edm.String)",<br>
            "analyzer": "keywordAnalyzer"<br>
        }<br>
    ...<br> <br>
    "analyzers": [
        {<br>
              "name":"keywordAnalyzer",<br>
              "@odata.type":"#Microsoft.Azure.Search.CustomAnalyzer",<br>
              "tokenizer":"keywordTokenizer",<br>
              "tokenFilters":[ "lowercase", "classic" ]<br>
        } ]<br>
    ...<br> <br>
    "tokenizers": [{<br>
            "name": "keywordTokenizer",<br>
            "@odata.type": "#Microsoft.Azure.Search.KeywordTokenizer"<br>
        }</p>
  </blockquote>
  
  <p>Now after having uploaded some documents, I just can't find the fields by entering exactly the chosen keywords. 
  For example the is a document with the following field-data: <br></p>
  
  <blockquote>
    <p>"keyWordList":          [
                "Blue Bear",
                "blue bear",
                "blue bear123"
             ]</p>
  </blockquote>
  
  <p>Im not able to find any result by querying the following search:</p>
  
  <blockquote>
    <p>{
        search:"blue bear",
        count:"true",
        queryType:"full"
    }</p>
  </blockquote>
  
  <p>Here is what I tried as well:</p>
  
  <ul>
  <li>using the predefined keywordanalyzer instead of a customized one <em>-> no success</em></li>
  <li>instead of using Collection(Edm.String) I just tested it with a normal String field, containing only one keyword <em>-> no success</em></li>
  <li>splitting up the analyzer in the field definition-block into searchAnalyzer="lowercaseAnalyzer" and filterAnalyzer="keywordAnalyzer" vice versa <em>-> no success</em></li>
  </ul>
  
  <p>In the end the only result I could get was via sending the whole seach phase as a single term. But this should be done by the analyzer, right?!</p>
  
  <blockquote>
    <p>{
        search:"\"blue bear\"",
        count:"true",
        queryType:"full"
    }</p>
  </blockquote>
  
  <p>Users don't know if they search for an existing keyword or perform a tokenized search. That's why this won't be an option.</p>
  
  <p>Is there any solution to this issue of mine?
  Or is there maybe a better / easier approach for this kind of keyword (high scoring) seach?</p>
  
  <p>Thanks!</p>