title: Hybris/Solr multiword-synonyms are working in solr admin ui, but the hybris query seems to be the problem
body: <p>I hope to find someone who can help with this problem.</p>
  
  <p>I changed the configuration in Solr, so that multiword-synonyms are possible. </p>
  
  <p>I made:</p>
  
  <ul>
  <li>sow=false in the handler configuration</li>
  <li>autogeneratephrasequery=true (solr 7.2)</li>
  <li>synonymgraphfilterfactory in query time</li>
  </ul>
  
  <p>If i debug a solr query, I see that the configurations are working fine.</p>
  
  <p><strong>But now the problem:</strong></p>
  
  <p>In Hybris Shop I get no search results for configured multi-word synonym. It seems that the query-builder translates may be the user query wrong in a solr query.</p>
  
  <p>What is important to check for this?</p>
  
  <p>The hybris-query-builder uses this:</p>
  
  <p>if (values.size() == 1)
              {
                  joinedQueries.add("(" + field + ":" + ((String) values.iterator().next()) + ")");
              }
              else
              {
                  joinedQueries.add("(" + field + ":("
                          + StringUtils.join(values.toArray(new String[values.size()]), SearchQuery.Operator.AND.getName()) + "))");
              }
          }</p>
  
  <pre><code>    if (joinedQueries.size() == 1)
      {
          return ((String) joinedQueries.get(0));
  
      }
  
      return StringUtils.join(joinedQueries.toArray(new String[joinedQueries.size()]), SearchQuery.Operator.OR.getName());
  </code></pre>
  
  <p>Is here may be a problem with the AND operator? I tried also only to seperate with whitespace but it did not work.</p>
  
  <p>I show what queries I have debugged in Hybris:</p>
  
  <p><strong>With AND Operator and multi word "little locker":</strong></p>
  
  <p>yq=<em>query</em>:"(keywords_text_de:(little\^200.0+AND+locker\^200.0+AND+\"little+locker\"\^400.0))+OR+(brandName_text_de_mv:(little\^30.0+AND+locker\^30.0))+OR+(name_text_de:(little\^100.0+AND+locker\^100.0))+OR+(code_string:\         ( and much more, but I have shorten it for you)</p>
  
  <p><strong>And with seperate via whitespace this:</strong></p>
  
  <p>yq=<em>query</em>:"(keywords_text_de:(little\^200.0+locker\^200.0+\"liege+platz\"\^400.0))+OR+(brandName_text_de_mv:(liege\^30.0+platz\^30.0))+OR+(name_text_de:(liege\^100.0+platz\^100.0))+OR\    (and much more..)</p>
  
  <p>I hope someone sees the mistake and can help me with this problem...</p>