# Query filters with snowball analyzer

**URL:** <https://discuss.elastic.co/t/query-filters-with-snowball-analyzer/7301>\
**Category:** Elasticsearch\
**Created:** [April 11, 2012, 10:05pm UTC](https://discuss.elastic.co/t/query-filters-with-snowball-analyzer/7301 "2012-04-11T22:05:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vidya\_Mani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vidya_mani/32/2931_2.png) [@Vidya\_Mani](https://discuss.elastic.co/u/Vidya_Mani)\
**Post date:** [April 11, 2012, 10:05pm UTC](https://discuss.elastic.co/t/query-filters-with-snowball-analyzer/7301/1 "2012-04-11T22:05:47Z")

</div>

Hi,

We are trying to use a snowball analyzer and applying a filter on our  
search queries. The filters seems to work only for numeric fields but not  
for string fields. These filters seem to work fine with the standard  
analyzer.

You can refer the code in this gist - [https://gist.github.com/2355404](https://gist.github.com/2355404)

Any help would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 13, 2012, 12:14pm UTC](https://discuss.elastic.co/t/query-filters-with-snowball-analyzer/7301/2 "2012-04-13T12:14:09Z")

</div>

Term filter does not do any analysis on the input text, maybe thats your  
problem? What happens when you use text query with it? Also, the analyzer  
configuration is wrong, you configure both a tokenizer and a type, which  
does not mean much. Its either the type snowball for the snowball analyzer,  
or provide a tokenizer and a list of filters.

On Thu, Apr 12, 2012 at 1:05 AM, Vidya Mani [vmani@thoughtworks.com](mailto:vmani@thoughtworks.com) wrote:

> Hi,
> 
> We are trying to use a snowball analyzer and applying a filter on our  
> search queries. The filters seems to work only for numeric fields but not  
> for string fields. These filters seem to work fine with the standard  
> analyzer.
> 
> You can refer the code in this gist - [Elastic Search filtering with the snowball Analyzer · GitHub](https://gist.github.com/2355404)
> 
> Any help would be appreciated.
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:32am UTC](https://discuss.elastic.co/t/query-filters-with-snowball-analyzer/7301/3 "2017-07-06T03:32:42Z")

</div>


