# Is there is any way to explicitly use custom analyzer on rabbitmq river?

**URL:** <https://discuss.elastic.co/t/is-there-is-any-way-to-explicitly-use-custom-analyzer-on-rabbitmq-river/6408>\
**Category:** Elasticsearch\
**Created:** [January 17, 2012, 9:22am UTC](https://discuss.elastic.co/t/is-there-is-any-way-to-explicitly-use-custom-analyzer-on-rabbitmq-river/6408 "2012-01-17T09:22:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [January 17, 2012, 9:22am UTC](https://discuss.elastic.co/t/is-there-is-any-way-to-explicitly-use-custom-analyzer-on-rabbitmq-river/6408/1 "2012-01-17T09:22:41Z")

</div>

Hi

I'm using Elastic search server 0.16.2.for preparing a index,i have  
used Rabbitmq river.I need to change default analyzer for index and  
search to custom one.

type:custom  
tokenizer:whitespace  
filter: stop,length

I have declare text file that contain few stop words.which i want to  
discard on search time.please help me how to customize my analyzer  
using rabbitmq river,also how i am able to refer search analyzer when  
i'm doing searching.

Thanks

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [January 18, 2012, 9:40am UTC](https://discuss.elastic.co/t/is-there-is-any-way-to-explicitly-use-custom-analyzer-on-rabbitmq-river/6408/2 "2012-01-18T09:40:50Z")

</div>

Please update the ES version you are using and show the full config  
and we'll be able to say what you need to improve. Also where did you  
put the stopwords file?

not sure about the river but normally you can customize the analyzer  
when creating the index or via API or in elasticsearch.yml

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

> <https://stackoverflow.com/questions/6275727/define-custom-elasticsearch-analyzer-using-java-api>

> also how i am able to refer search analyzer when i'm doing searching.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Peter.

On 17 Jan., 10:22, sam [mishra.sam...@gmail.com](mailto:mishra.sam...@gmail.com) wrote:

> Hi
> 
> I'm using Elastic search server 0.16.2.for preparing a index,i have  
> used Rabbitmq river.I need to change default analyzer for index and  
> search to custom one.
> 
> type:custom  
> tokenizer:whitespace  
> filter: stop,length
> 
> I have declare text file that contain few stop words.which i want to  
> discard on search time.please help me how to customize my analyzer  
> using rabbitmq river,also how i am able to refer search analyzer when  
> i'm doing searching.
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [January 18, 2012, 9:51am UTC](https://discuss.elastic.co/t/is-there-is-any-way-to-explicitly-use-custom-analyzer-on-rabbitmq-river/6408/3 "2012-01-18T09:51:47Z")

</div>

Thanks for reply.i have created gist [https://gist.github.com/1626452.i](https://gist.github.com/1626452.i)  
tried this mapping,server will parse this message and prepared  
index,but analyzer will not apply it uses the default analyzer.also i  
have put absolute path of stopwords file in my mapping.i am not pretty  
sure my mapping is correct.

Thanks

On Jan 18, 2:40 pm, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:

> Please update the ES version you are using and show the full config  
> and we'll be able to say what you need to improve. Also where did you  
> put the stopwords file?
> 
> not sure about the river but normally you can customize the analyzer  
> when creating the index or via API or in elasticsearch.yml
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/c...http://stackoverflow.com/questions/6275727/define-custom-elasticsearc)...
> 
> > also how i am able to refer search analyzer when i'm doing searching.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/uri-request.html)
> 
> Peter.
> 
> On 17 Jan., 10:22, sam [mishra.sam...@gmail.com](mailto:mishra.sam...@gmail.com) wrote:
> 
> > Hi
> 
> > I'm using Elastic search server 0.16.2.for preparing a index,i have  
> > used Rabbitmq river.I need to change default analyzer for index and  
> > search to custom one.
> 
> > type:custom  
> > tokenizer:whitespace  
> > filter: stop,length
> 
> > I have declare text file that contain few stop words.which i want to  
> > discard on search time.please help me how to customize my analyzer  
> > using rabbitmq river,also how i am able to refer search analyzer when  
> > i'm doing searching.
> 
> > 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:42am UTC](https://discuss.elastic.co/t/is-there-is-any-way-to-explicitly-use-custom-analyzer-on-rabbitmq-river/6408/4 "2017-07-06T03:42:22Z")

</div>


