title: Spring data elastic search wild card search
body: <p>I am trying to search for the word <strong>blue</strong> in the below list of text </p>
  
  <p>"BlueSaphire","Bluo","alue","blue", "BLUE",
  "Blue","Blue Black","Bluo","Saphire Blue",
  "black" , "green","bloo" , "Saphireblue"</p>
  
  <pre><code>SearchQuery searchQuery = new NativeSearchQueryBuilder().withIndices("color")
                    .withQuery(matchQuery("colorDescriptionCode", "blue")
                    .fuzziness(Fuzziness.ONE)
                    )
                    .build();
  </code></pre>
  
  <p>This works fine and the search result returns  the below records along with the scores</p>
  
  <pre><code>alue    2.8718023
  Bluo    1.7804208
  Bluo    1.7804208
  BLUE    1.2270637
  blue    1.2270637
  Blue    1.2270637
  Blue Black    1.1082436
  Saphire Blue    0.7669148
  </code></pre>
  
  <p>But I am not able to make wild card work . "SaphireBlue" and "BlueSaphire" is also expected to be part of the result</p>
  
  <p>I tried the below setting but it does not work .</p>
  
  <pre><code>SearchQuery searchQuery = new NativeSearchQueryBuilder().withIndices("color")
                        .withQuery(matchQuery("colorDescriptionCode", "(.*?)blue")
                        .fuzziness(Fuzziness.ONE)
                        )
                        .build();
  </code></pre>
  
  <p>In stack overflow , I observed a solution to specify analyze wild card .</p>
  
  <pre><code>QueryBuilder queryBuilder = boolQuery().should(
                  queryString("blue").analyzeWildcard(true)
                          .field("colorDescriptionCode", 2.0f);
  </code></pre>
  
  <p>I dont find the queryString static method . I am using spring-data-elasticsearch 2.0.0.RELEASE . </p>
  
  <p>Let me know how i can specify the wild card so the all words containing <strong>blue</strong> will also be returned in the search results</p>