# Combining language-specific analyzer and synonym token filter

**URL:** https://discuss.elastic.co/t/combining-language-specific-analyzer-and-synonym-token-filter/7876
**Category:** Elasticsearch
**Created:** [May 28, 2012, 1:28am UTC](https://discuss.elastic.co/t/combining-language-specific-analyzer-and-synonym-token-filter/7876 "2012-05-28T01:28:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anon44344346](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@anon44344346](https://discuss.elastic.co/u/anon44344346)
#### Post date: [May 28, 2012, 1:28am UTC](https://discuss.elastic.co/t/combining-language-specific-analyzer-and-synonym-token-filter/7876/1 "2012-05-28T01:28:51Z")

</div>

we use language-specifyc analyzer.  
in my understanding, language-specific analyzer is a combination of  
standard tokenizer plus customized stop words plus language-specific  
stemming (I don't know if that last thing is done through snowball, though).

I want to add synonyms feature, but I'm guessing I can not just add the  
synonym filter to the language-specific analyzer, since the tokens that the  
synonym filter would receive would be 'stemmed' versions.

I was thinking if there is anywhere I can see what exact combination of  
filters the language analyzers are made of, I could plug the synonym filter  
before the stemming.

## Is that possible, am I just throwing stones here? (quite probably, these are my first steps with elasticsearch), is there any other approax??

uh, oh [http://www.youtube.com/watch?v=GMD\_T7ICL0o](http://www.youtube.com/watch?v=GMD_T7ICL0o).

[http://windows7sins.org/](http://windows7sins.org/)

---

<div class="post-metadata">

### Author: ![anon44344346](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@anon44344346](https://discuss.elastic.co/u/anon44344346)
#### Post date: [May 28, 2012, 11:37am UTC](https://discuss.elastic.co/t/combining-language-specific-analyzer-and-synonym-token-filter/7876/2 "2012-05-28T11:37:55Z")

</div>

Ok, I've found this link:  
[http://svn.apache.org/repos/asf/lucene/dev/branches/lucene\_solr\_3\_6/solr/example/solr/conf/schema.xml](http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6/solr/example/solr/conf/schema.xml)  
although its painfully hard to review, looks like it shows what  
'laguage-specific analyzers are really made of'. is Elasticsearch using  
this or there is another place to look at?

On Sunday, May 27, 2012 9:28:51 PM UTC-4, JoeZ99 wrote:

> we use language-specifyc analyzer.  
> in my understanding, language-specific analyzer is a combination of  
> standard tokenizer plus customized stop words plus language-specific  
> stemming (I don't know if that last thing is done through snowball, though).
> 
> I want to add synonyms feature, but I'm guessing I can not just add the  
> synonym filter to the language-specific analyzer, since the tokens that the  
> synonym filter would receive would be 'stemmed' versions.
> 
> I was thinking if there is anywhere I can see what exact combination of  
> filters the language analyzers are made of, I could plug the synonym filter  
> before the stemming.
> 
> ## Is that possible, am I just throwing stones here? (quite probably, these are my first steps with elasticsearch), is there any other approax??
> 
> uh, oh [http://www.youtube.com/watch?v=GMD\_T7ICL0o](http://www.youtube.com/watch?v=GMD_T7ICL0o).
> 
> [http://windows7sins.org/](http://windows7sins.org/)

---

<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:26am UTC](https://discuss.elastic.co/t/combining-language-specific-analyzer-and-synonym-token-filter/7876/3 "2017-07-06T03:26:43Z")

</div>


