title: Elastica filter not working
body: <p>I am testing out Elastica and Elastic Search. I am trying to add a filter to my query that only returns results by city location. It is returning empty. I've tried filter by username, and so on and it always returns empty, so it would seem my understanding isn't quite correct. Here's my code to analyse, map, then search with a filter</p>
  
  <pre><code>    $elasticaIndex = $elasticaClient-&gt;getIndex('users');
      // Create the index new
      $elasticaIndex-&gt;create(
              array(
          'analysis' =&gt; array(
              'analyzer' =&gt; array(
                  'indexAnalyzer' =&gt; array(
                      'type' =&gt; 'custom',
                      'tokenizer' =&gt; 'standard',
                      'filter' =&gt; array('lowercase', 'lb_ngram')
                  ),
                  'searchAnalyzer' =&gt; array(
                      'type' =&gt; 'custom',
                      'tokenizer' =&gt; 'standard',
                      'filter' =&gt; array('standard', 'lowercase', 'lb_ngram')
                  )
              ),
              'filter' =&gt; array(
                  'lb_ngram' =&gt; array(
                      "max_gram" =&gt; 10,
                      "min_gram" =&gt; 1,
                      "type" =&gt; "nGram"
                  )
              )
          )
              ), true
      );
      //Create a type
      $elasticaType = $elasticaIndex-&gt;getType('profile');
  
  
      // Set mapping
      $mapping-&gt;setProperties(array(
          //'id' =&gt; array('type' =&gt; 'integer', 'include_in_all' =&gt; FALSE),
          'firstName' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE),
          'lastName' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE),
          'username' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE),
          'bio' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE),
          'thumbnail' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; FALSE),
          'location' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE),
      ));
  </code></pre>
  
  <p>..... Then to search, I do the following</p>
  
  <pre><code>        $elasticaQueryString = new Elastica\Query\QueryString();
  
          //'And' or 'Or' default : 'Or'
          $elasticaQueryString-&gt;setDefaultOperator('AND');
          $elasticaQueryString-&gt;setQuery($term);
  
          // Create the actual search object with some data.
          $elasticaQuery = new Elastica\Query();
          $elasticaQuery-&gt;setQuery($elasticaQueryString);
  </code></pre>
  
  <p>To add a filter</p>
  
  <pre><code>            $elasticaFilterLocation = new \Elastica\Filter\Term();
              //search 'location' = $region;
              $elasticaFilterLocation-&gt;setTerm('location', $region);           
              $elasticaQuery-&gt;setFilter($elasticaFilterLocation);
              $elasticaResultSet = $elasticaIndex-&gt;search($elasticaQuery);                
              $elasticaResults = $elasticaResultSet-&gt;getResults();
  </code></pre>
  
  <p>If I comment out the filter, I do get the expected results. What am I missing? Does it have to do with the analyzer or mapping?</p>