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


(Sam-4) #1

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


(Karussell) #2

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

http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer.html

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

http://www.elasticsearch.org/guide/reference/api/search/uri-request.html

Peter.

On 17 Jan., 10:22, sam 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


(Sam-4) #3

Thanks for reply.i have created gist 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 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

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.

http://www.elasticsearch.org/guide/reference/api/search/uri-request.html

Peter.

On 17 Jan., 10:22, sam 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


(system) #4